summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-04-19 11:04:54 +0200
committermkanat%bugzilla.org <>2007-04-19 11:04:54 +0200
commit29ab35c232fdff053f78b18598bfbe6a13f29826 (patch)
tree5763e4609f0b96bcd5afbb93fdcc10924f51dc87 /Bugzilla/Constants.pm
parent0e2a60dc182c15159110e996b370fe1640af0fa4 (diff)
downloadbugzilla-29ab35c232fdff053f78b18598bfbe6a13f29826.tar.gz
bugzilla-29ab35c232fdff053f78b18598bfbe6a13f29826.tar.xz
Bug 372531: "match" should be a generic function in Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 83b39047d..c872cf77b 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -40,6 +40,10 @@ use File::Basename;
BUGZILLA_VERSION
bz_locations
+
+ IS_NULL
+ NOT_NULL
+
CONTROLMAPNA
CONTROLMAPSHOWN
CONTROLMAPDEFAULT
@@ -148,6 +152,17 @@ use File::Basename;
# Bugzilla version
use constant BUGZILLA_VERSION => "3.1";
+# These are unique values that are unlikely to match a string or a number,
+# to be used in criteria for match() functions and other things. They start
+# and end with spaces because most Bugzilla stuff has trim() called on it,
+# so this is unlikely to match anything we get out of the DB.
+#
+# We can't use a reference, because Template Toolkit doesn't work with
+# them properly (constants.IS_NULL => {} just returns an empty string instead
+# of the reference).
+use constant IS_NULL => ' __IS_NULL__ ';
+use constant NOT_NULL => ' __NOT_NULL__ ';
+
#
# ControlMap constants for group_control_map.
# membercontol:othercontrol => meaning