]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 246778: ThrowUserError shouldn't cause internal error with timetracking...
authorjocuri%softhome.net <>
Sat, 19 Jun 2004 15:15:26 +0000 (15:15 +0000)
committerjocuri%softhome.net <>
Sat, 19 Jun 2004 15:15:26 +0000 (15:15 +0000)
globals.pl

index 7c1c9eb93791876afbc5baa0a0db3aea057cd02e..a2172a998e027dff53fc1461b3baef105bf5f141 100644 (file)
@@ -128,7 +128,7 @@ sub AppendComment {
        # regexp verifies one or more digits, optionally followed by a period and
        # zero or more digits, OR we have a period followed by one or more digits
        if ($work_time !~ /^-?(?:\d+(?:\.\d*)?|\.\d+)$/) { 
-          ThrowUserError("need_numeric_value");
+          ThrowUserError("need_numeric_value", {}, "abort");
        }
     } else { $work_time = 0 };