From 92e255cf02de8dc34f1221c952b3dd3bec9cc62b Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 13 Mar 2016 17:59:37 -0400 Subject: Alter admin setting form handler Set a default value for field 'settSSL'. If this value is locked in the system-level configuration, then the disabled radio buttons don't assume a value during POST submission to the page and the field appears to the $form object as being unset. I use the currently set value for this option as the default. --- app/model/common.mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/model/common.mod.php b/app/model/common.mod.php index 7f0302f..8d1ea7e 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -103,7 +103,7 @@ class CommonModel extends MasterModel function saveSettingAdmin($input) { $form = new Form(); - $form->field_enum("settSSL", array("force", "neither", "forbid")); + $form->field_enum("settSSL", array("force", "neither", "forbid"), Setting::settSSL()); $form->field_bool("allowPublicSignup"); if (!$form->populate($input)) -- cgit v1.2.3