From f16d0de076ce88582b0f82f0aa8d87af7a801842 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" Date: Thu, 25 Sep 2003 19:59:44 +0000 Subject: [PATCH] Bug 76157: Give proper error message on non-numeric sortkey when editing milestones. Patch by jocuri@softhome.net (Vlad Dascalu) r=kiko, a=justdave --- webtools/bugzilla/editmilestones.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webtools/bugzilla/editmilestones.cgi b/webtools/bugzilla/editmilestones.cgi index 504a36e7c6ff..19582b4854f8 100755 --- a/webtools/bugzilla/editmilestones.cgi +++ b/webtools/bugzilla/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";