From: jocuri%softhome.net <> Date: Sat, 19 Jun 2004 15:15:26 +0000 (+0000) Subject: Patch for bug 246778: ThrowUserError shouldn't cause internal error with timetracking... X-Git-Tag: bugzilla-2.18rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59de2bcc9316bde5addd8836a77deb5b26c36592;p=thirdparty%2Fbugzilla.git Patch for bug 246778: ThrowUserError shouldn't cause internal error with timetracking; patch by Marc Schumann ; r=kiko; a=justdave. --- diff --git a/globals.pl b/globals.pl index 7c1c9eb937..a2172a998e 100644 --- a/globals.pl +++ b/globals.pl @@ -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 };