diff options
author | justdave%syndicomm.com <> | 2003-09-26 04:59:44 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-09-26 04:59:44 +0200 |
commit | 58cee6fc901915d1f79e4fbeb1840e6a3421fc0d (patch) | |
tree | 27240266208a3389fafe7e9afd938f9b41df386a /editmilestones.cgi | |
parent | e53b0f67619a0fb173fd424e632368a92c3a33e8 (diff) | |
download | bugzilla-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar.gz bugzilla-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar.xz |
Bug 76157: Give proper error message on non-numeric sortkey when editing milestones.
Patch by jocuri@softhome.net (Vlad Dascalu)
r=kiko, a=justdave
Diffstat (limited to 'editmilestones.cgi')
-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"; |