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

Patch by jocuri@softhome.net (Vlad Dascalu) r=kiko, a=justdave
parent e53b0f67
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment