summaryrefslogtreecommitdiffstats
path: root/app/model/common.mod.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-13 17:59:37 -0400
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commit92e255cf02de8dc34f1221c952b3dd3bec9cc62b (patch)
tree6a97b4f0e8eec3a326e0212ba8c8da57e042f44b /app/model/common.mod.php
parentd60706acd0ac810783a24d2e33b76f6955d72599 (diff)
downloadscrott-92e255cf02de8dc34f1221c952b3dd3bec9cc62b.tar.gz
scrott-92e255cf02de8dc34f1221c952b3dd3bec9cc62b.zip
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.
Diffstat (limited to 'app/model/common.mod.php')
-rw-r--r--app/model/common.mod.php2
1 files changed, 1 insertions, 1 deletions
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))