Fix a bug that cannot unhide a platform.
authordewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Oct 2019 21:46:29 +0000 (21:46 +0000)
committerdewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Oct 2019 21:46:29 +0000 (21:46 +0000)
commit977a9f2a8b502e684d12eaece5b9df2a0e4273a2
tree01ba198de8fea1e0b0b6a8d37e545a7a6a87cd48
parentd26da3d0501c6e15cc2a0c4395c989faeb981d5d
Fix a bug that cannot unhide a platform.
https://bugs.webkit.org/show_bug.cgi?id=203521

Reviewed by Ryosuke Niwa.

Before this change, the there is no value in POST when 'hidden' checkbox is unchecked.
Then the update will fail because platform_hidden cannot be NULL.

* public/admin/platforms.php: Adapted 'update_boolean_field'.
* public/admin/triggerables.php: Adapted 'update_boolean_field'.
* public/include/admin-header.php: Added 'update_boolean_field' helper function to set explict
boolean value for update.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/admin/platforms.php
Websites/perf.webkit.org/public/admin/triggerables.php
Websites/perf.webkit.org/public/include/admin-header.php