From 048d054c3e4d7dd89b63c7d3156c96b3d2e1f47f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 May 2005 23:29:32 +0000 Subject: [PATCH] r193: Fixed some bugs with the edit DO-branch. --- admin/fields.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/fields.php b/admin/fields.php index 6cb9aac..df77cb4 100644 --- a/admin/fields.php +++ b/admin/fields.php @@ -168,7 +168,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') $typeselect = (($add AND empty($bugsys->in['step'])) ? true : false); $edit = (($add) ? false : true); - $admin->page_start((($add) ? phrase('add_new_field') : 'Edit Profile Field')); + $admin->page_start(phrase((($add) ? 'add_new_field' : 'edit_field'))); $admin->form_start('fields.php', (($typeselect) ? 'add' : 'update')); if ($add AND !$typeselect) { @@ -234,7 +234,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') // type-specific fields $admin->row_span('Type-Specific Fields', 'thead', 'center'); - switch ($bugsys->in['type']) + switch ($type) { case 'input_text': $admin->row_input('Default Value', 'defaultvalue', $field['defaultvalue']); @@ -253,7 +253,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') break; case 'select_single': - $admin->row_textarea('Selection Values', 'selects', $field['selects']); + $admin->row_textarea('Selection Values', 'selects', implode("\n", unserialize($field['selects']))); $admin->row_yesno('Make the First Option Default', 'usedefault', $field['usedefault']); break; } -- 2.43.5