From 2bc1302fcbc5a0425d2cf542de1eb3ef62c0124e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 2 Jun 2005 01:41:06 +0000 Subject: [PATCH] r228: Removed the textarea bug field type. --- admin/fields.php | 8 -------- includes/functions.php | 4 ---- templates/default/bugfield_textarea.tpl | 3 --- 3 files changed, 15 deletions(-) delete mode 100644 templates/default/bugfield_textarea.tpl diff --git a/admin/fields.php b/admin/fields.php index df63335..2890184 100644 --- a/admin/fields.php +++ b/admin/fields.php @@ -19,7 +19,6 @@ if (!can_perform('canadminfields')) $TYPES = array( 'input_text' => 'Single-Line Text Box', - 'textarea' => 'Multi-Line Text Area', 'input_checkbox' => 'Checkbox Flag', 'select_single' => 'Drop-Down Menu', ); @@ -104,7 +103,6 @@ if ($_REQUEST['do'] == 'update') switch ($type) { case 'input_text': - case 'textarea': $extrafields = 'defaultvalue, regexmatch, maxlength'; $extradata = "'" . $bugsys->in['defaultvalue'] . "', '" . $bugsys->in['regexmatch'] . "', " . intval($bugsys->in['maxlength']); $extraupdate = "defaultvalue = '" . $bugsys->in['defaultvalue'] . "', regexmatch = '" . $bugsys->in['regexmatch'] . "', maxlength = " . intval($bugsys->in['maxlength']); @@ -251,12 +249,6 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') $admin->row_input('Maximum Length', 'maxlength', $field['maxlength'], 2, 10); break; - case 'textarea': - $admin->row_textarea('Default Value', 'defaultvalue', $field['defaultvalue']); - $admin->row_input('Regular Expression Match', 'regexmatch', $field['regexmatch']); - $admin->row_input('Maximum Length', 'maxlength', $field['maxlength'], 2, 10); - break; - case 'input_checkbox': $admin->row_yesno('Checked By Default', 'defaultvalue', $field['defaultvalue']); break; diff --git a/includes/functions.php b/includes/functions.php index b89913e..d61acc6 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -359,10 +359,6 @@ function construct_custom_fields($bug = array()) eval('$tempfield = "' . $bugsys->template->fetch('bugfield_input_text') . '";'); break; - case 'textarea': - eval('$tempfield = "' . $bugsys->template->fetch('bugfield_textarea') . '";'); - break; - case 'input_checkbox': $selected = (($value) ? ' checked="checked"' : ''); eval('$tempfield = "' . $bugsys->template->fetch('bugfield_input_checkbox') . '";'); diff --git a/templates/default/bugfield_textarea.tpl b/templates/default/bugfield_textarea.tpl deleted file mode 100644 index e4211d8..0000000 --- a/templates/default/bugfield_textarea.tpl +++ /dev/null @@ -1,3 +0,0 @@ -
$field[name]: -
-
\ No newline at end of file -- 2.43.5