From deec65f18623d29493ed7a7e1ebaa2997bacc7fd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 May 2005 23:35:54 +0000 Subject: [PATCH] r194: Making update DO-branch work. Some code cleanup and removing debugging code. --- admin/fields.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/admin/fields.php b/admin/fields.php index df77cb4..e42699a 100644 --- a/admin/fields.php +++ b/admin/fields.php @@ -22,7 +22,6 @@ $TYPES = array( 'textarea' => 'Multi-Line Text Area', 'input_checkbox' => 'Checkbox Flag', 'select_single' => 'Drop-Down Menu', - //'select_multi' => 'Multiple-Selection Menu' ); // ################################################################### @@ -86,7 +85,7 @@ if ($_REQUEST['do'] == 'update') $admin->error('Invalid field type specified.'); } - switch ($bugsys->in['type']) + switch ($type) { case 'input_text': case 'textarea': @@ -108,7 +107,6 @@ if ($_REQUEST['do'] == 'update') // so we have to use preg_split with the PREG_SPLIT_NO_EMPTY flag to prevent this $selects = preg_split("#\n#", trim($bugsys->in['selects']), 0, PREG_SPLIT_NO_EMPTY); array_walk($selects, 'trim'); - if (count($selects) < 1) { $admin->error('You need to specify some select values.'); @@ -119,11 +117,6 @@ if ($_REQUEST['do'] == 'update') break; } - /*var_dump($extrafields); - var_dump($extradata); - var_dump($extraupdate); - exit;*/ - if ($add) { if ($db->query_first("SELECT * FROM " . TABLE_PREFIX . "bugfields WHERE shortname = '" . $bugsys->in['shortname'] . "'") OR $bugsys->in['shortname'] == 'bugid') -- 2.22.5