diff options
-rwxr-xr-x | editmilestones.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi index 504a36e7c..19582b485 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -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"; |