aboutsummaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-09-26 02:59:44 +0000
committerjustdave%syndicomm.com <>2003-09-26 02:59:44 +0000
commit58cee6fc901915d1f79e4fbeb1840e6a3421fc0d (patch)
tree27240266208a3389fafe7e9afd938f9b41df386a /editmilestones.cgi
parente53b0f67619a0fb173fd424e632368a92c3a33e8 (diff)
downloadbugs-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar
bugs-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar.gz
bugs-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar.bz2
bugs-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.tar.xz
bugs-58cee6fc901915d1f79e4fbeb1840e6a3421fc0d.zip
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-xeditmilestones.cgi6
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";