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:
jocuri%softhome.net 2004-06-19 08:15:26 +00:00
Родитель 56fd83638f
Коммит 59ac7944f7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 };