зеркало из https://github.com/mozilla/pjs.git
Patch for bug 246778: ThrowUserError shouldn't cause internal error with timetracking; patch by Marc Schumann <marcschum@web.de>; r=kiko; a=justdave.
This commit is contained in:
Родитель
56fd83638f
Коммит
59ac7944f7
|
@ -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 };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче