diff options
author | mkanat%kerio.com <> | 2005-03-05 08:18:47 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-05 08:18:47 +0000 |
commit | ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea (patch) | |
tree | b1d6fe9b10b89a30e2b1932d050d5678362f638a /Bugzilla/Bug.pm | |
parent | e4b8b770b0229a0761a3ef5116c7fcad4e5352d5 (diff) | |
download | bugs-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar bugs-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.gz bugs-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.bz2 bugs-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.xz bugs-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.zip |
Bug 277782: _throw_error should unlock tables when tables are locked, automatically
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=travis, r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index a6758d36f..b2261e1ee 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -511,21 +511,18 @@ sub ValidateTime { # (allow negatives, though, so people can back out errors in time reporting) if ($time !~ /^-?(?:\d+(?:\.\d*)?|\.\d+)$/) { ThrowUserError("number_not_numeric", - {field => "$field", num => "$time"}, - "abort"); + {field => "$field", num => "$time"}); } # Only the "work_time" field is allowed to contain a negative value. if ( ($time < 0) && ($field ne "work_time") ) { ThrowUserError("number_too_small", - {field => "$field", num => "$time", min_num => "0"}, - "abort"); + {field => "$field", num => "$time", min_num => "0"}); } if ($time > 99999.99) { ThrowUserError("number_too_large", - {field => "$field", num => "$time", max_num => "99999.99"}, - "abort"); + {field => "$field", num => "$time", max_num => "99999.99"}); } } |