summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-10 17:00:18 +0200
committerlpsolit%gmail.com <>2007-10-10 17:00:18 +0200
commitc02ab7f8bd9caf0dffaba6a88030ac57c21951a8 (patch)
tree34db9b4d5ba9c00e7f61555a5654902fe2bdcec5 /Bugzilla/Constants.pm
parent7d05707cc6db24a30dc9325cd0f2cfe3d78d7440 (diff)
downloadbugzilla-c02ab7f8bd9caf0dffaba6a88030ac57c21951a8.tar.gz
bugzilla-c02ab7f8bd9caf0dffaba6a88030ac57c21951a8.tar.xz
Bug 313129: Implement $milestone->create and $milestone->update based on Object.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 7ac6048c4..99edb2f50 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -142,7 +142,11 @@ use File::Basename;
SAFE_PROTOCOLS
+ MIN_SMALLINT
+ MAX_SMALLINT
+
MAX_LEN_QUERY_NAME
+ MAX_MILESTONE_SIZE
);
@Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
@@ -397,9 +401,15 @@ use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root';
# True if we're on Win32.
use constant ON_WINDOWS => ($^O =~ /MSWin32/i);
+use constant MIN_SMALLINT => -32768;
+use constant MAX_SMALLINT => 32767;
+
# The longest that a saved search name can be.
use constant MAX_LEN_QUERY_NAME => 64;
+# The longest milestone name allowed.
+use constant MAX_MILESTONE_SIZE => 20;
+
sub bz_locations {
# We know that Bugzilla/Constants.pm must be in %INC at this point.
# So the only question is, what's the name of the directory