From: justdave%syndicomm.com <> Date: Fri, 26 Sep 2003 02:59:44 +0000 (+0000) Subject: Bug 76157: Give proper error message on non-numeric sortkey when editing milestones. X-Git-Tag: bugzilla-2.17.5~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58cee6fc901915d1f79e4fbeb1840e6a3421fc0d;p=thirdparty%2Fbugzilla.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 --- diff --git a/editmilestones.cgi b/editmilestones.cgi index 504a36e7c6..19582b4854 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";