From 58cee6fc901915d1f79e4fbeb1840e6a3421fc0d Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Fri, 26 Sep 2003 02:59:44 +0000 Subject: Bug 76157: Give proper error message on non-numeric sortkey when editing milestones. Patch by jocuri@softhome.net (Vlad Dascalu) r=kiko, a=justdave --- editmilestones.cgi | 6 ++++++ 1 file changed, 6 insertions(+) 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 "Back and try again.\n"; + PutTrailer($localtrailer); + exit; + } if (TestMilestone($product,$milestone)) { print "The milestone '$milestone' already exists. Please press\n"; print "Back and try again.\n"; -- cgit v1.2.3-24-g4f1b