summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-08-26 23:36:17 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-08-26 23:36:17 +0200
commit48649030bf8536d8b9cf9df522c39438a06ec56c (patch)
tree750454c80df2ede981a5e3324db210decdc7fffd /Bugzilla
parent4b3f99ad09407a6c145f39641257060035e71303 (diff)
downloadbugzilla-48649030bf8536d8b9cf9df522c39438a06ec56c.tar.gz
bugzilla-48649030bf8536d8b9cf9df522c39438a06ec56c.tar.xz
Bug 1198659: Custom fields of type INTEGER should accept negative integers
r=gerv a=sgreen
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index dda572ed7..bd3bf587c 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2292,7 +2292,7 @@ sub _check_integer_field {
ThrowUserError("number_not_integer",
{field => $field, num => $orig_value});
}
- elsif ($value > MAX_INT_32) {
+ elsif (abs($value) > MAX_INT_32) {
ThrowUserError("number_too_large",
{field => $field, num => $orig_value, max_num => MAX_INT_32});
}