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
parent 4bd9580f38
commit f16d0de076

View File

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