summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-21 22:08:18 +0100
committerlpsolit%gmail.com <>2006-02-21 22:08:18 +0100
commitda9ac9431cc959eedef78a5118ac3b4c6fbf7d03 (patch)
tree840e490e59e6a28c083b31a7281877a74105b997 /Bugzilla/Constants.pm
parent7780ace7e977d39ef9c904697e355248becf192b (diff)
downloadbugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.gz
bugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.xz
Bug 287325: Ability to add custom plain-text fields to a Bug - Patch by Myk Melez <myk@mozilla.org> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index c00518732..afb621f78 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -91,6 +91,9 @@ use base qw(Exporter);
ADMIN_GROUP_NAME
SENDMAIL_EXE
+
+ FIELD_TYPE_UNKNOWN
+ FIELD_TYPE_FREETEXT
);
@Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
@@ -243,4 +246,14 @@ use constant ADMIN_GROUP_NAME => 'admin';
# Path to sendmail.exe (Windows only)
use constant SENDMAIL_EXE => '/usr/lib/sendmail.exe';
+# Field types. Match values in fielddefs.type column. These are purposely
+# not named after database column types, since Bugzilla fields comprise not
+# only storage but also logic. For example, we might add a "user" field type
+# whose values are stored in an integer column in the database but for which
+# we do more than we would do for a standard integer type (f.e. we might
+# display a user picker).
+
+use constant FIELD_TYPE_UNKNOWN => 0;
+use constant FIELD_TYPE_FREETEXT => 1;
+
1;