From 8f636554851609b8affae04cbc3bd3b99c2a55a1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 26 Jun 2005 14:21:40 +0000 Subject: [PATCH] r267: Removed shortname stuff; there was still some left --- admin/fields.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/admin/fields.php b/admin/fields.php index b5a8e04..9a6c9f2 100644 --- a/admin/fields.php +++ b/admin/fields.php @@ -125,20 +125,11 @@ if ($_REQUEST['do'] == 'update') if ($add) { - if ($db->query_first("SELECT * FROM " . TABLE_PREFIX . "bugfield WHERE shortname = '" . $bugsys->in['shortname'] . "'") OR $bugsys->in['shortname'] == 'bugid') - { - $admin->error('That short name is already in use, please change it so it is unique.'); - } - $db->query(" INSERT INTO bugfield - ( - #shortname, - name, description, type, required, cansearch, $extrafields) + (name, description, type, required, cansearch, $extrafields) VALUES - ( - #'" . $bugsys->in['shortname'] . "', - '" . $bugsys->in['name'] . "', + ('" . $bugsys->in['name'] . "', '" . $bugsys->in['description'] . "', '$type', " . intval($bugsys->in['required']) . ", " . intval($bugsys->in['cansearch']) . ", $extradata )" -- 2.43.5