mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
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:
parent
4bd9580f38
commit
f16d0de076
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user