Bug 76157: Give proper error message on non-numeric sortkey when editing milestones.

Patch by jocuri@softhome.net (Vlad Dascalu)
r=kiko, a=justdave
This commit is contained in:
justdave%syndicomm.com 2003-09-25 19:59:44 +00:00
Родитель 6a13337c4d
Коммит d223256999
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -295,6 +295,12 @@ if ($action eq 'new') {
PutTrailer($localtrailer);
exit;
}
if ($sortkey!~/^[0-9]+$/) {
print "The sortkey for a milestone must be a number. Please press\n";
print "<b>Back</b> and try again.\n";
PutTrailer($localtrailer);
exit;
}
if (TestMilestone($product,$milestone)) {
print "The milestone '$milestone' already exists. Please press\n";
print "<b>Back</b> and try again.\n";