зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6a13337c4d
Коммит
d223256999
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче