summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-22 06:58:43 +0200
committermkanat%bugzilla.org <>2008-08-22 06:58:43 +0200
commitbfcc230e3bf4b8876816f20911a46505dea0f61a (patch)
treeb33c3adf71b6b555ac3c574e24551d43dff8e4a8 /Bugzilla/Field.pm
parentfed8e66bbd70a815fee8c7f16936dd77651bd31f (diff)
downloadbugzilla-bfcc230e3bf4b8876816f20911a46505dea0f61a.tar.gz
bugzilla-bfcc230e3bf4b8876816f20911a46505dea0f61a.tar.xz
Bug 287334: Ability to add custom "Bug ID" fields
Patch By Elliotte Martin <elliotte_martin@yahoo.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Field.pm')
-rw-r--r--Bugzilla/Field.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm
index 0d7479034..4b801f13d 100644
--- a/Bugzilla/Field.pm
+++ b/Bugzilla/Field.pm
@@ -125,6 +125,7 @@ use constant SQL_DEFINITIONS => {
DEFAULT => "'---'" },
FIELD_TYPE_TEXTAREA, { TYPE => 'MEDIUMTEXT' },
FIELD_TYPE_DATETIME, { TYPE => 'DATETIME' },
+ FIELD_TYPE_BUG_ID, { TYPE => 'INT3' },
};
# Field definitions for the fields that ship with Bugzilla.
@@ -253,7 +254,7 @@ sub _check_type {
my $saved_type = $type;
# The constant here should be updated every time a new,
# higher field type is added.
- (detaint_natural($type) && $type <= FIELD_TYPE_DATETIME)
+ (detaint_natural($type) && $type <= FIELD_TYPE_BUG_ID)
|| ThrowCodeError('invalid_customfield_type', { type => $saved_type });
return $type;
}