From cc81255424b1b131e6a0de9ef1df2f8e4240bc88 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 24 May 2005 05:33:18 +0000 Subject: [PATCH] r198: For input_checkbox, we need to use `defaultvalue` not just `default` silly me --- admin/fields.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/fields.php b/admin/fields.php index 453aaa2..c32cb2a 100644 --- a/admin/fields.php +++ b/admin/fields.php @@ -111,9 +111,9 @@ if ($_REQUEST['do'] == 'update') break; case 'input_checkbox': - $extrafields = 'default'; - $extradata = intval($bugsys->in['default']); - $extraupdate = "default = " . intval($bugsys->in['default']); + $extrafields = 'defaultvalue'; + $extradata = intval($bugsys->in['defaultvalue']); + $extraupdate = "defaultvalue = " . intval($bugsys->in['defaultvalue']); break; case 'select_single': @@ -258,7 +258,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') break; case 'input_checkbox': - $admin->row_yesno('Checked By Default', 'default', $field['default']); + $admin->row_yesno('Checked By Default', 'defaultvalue', $field['defaultvalue']); break; case 'select_single': -- 2.43.5