From: gerv%gerv.net <> Date: Thu, 25 Apr 2002 03:07:57 +0000 (+0000) Subject: Bug 125066 - remove the need to set a milestone on accept for products with just... X-Git-Tag: bugzilla-2.16rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07e523a842a471543df1420dbb479063b4fba372;p=thirdparty%2Fbugzilla.git Bug 125066 - remove the need to set a milestone on accept for products with just one milestone. Patch by zeroj; r=justdave, gerv. --- diff --git a/process_bug.cgi b/process_bug.cgi index 35c24e24e7..450b839f1e 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -568,7 +568,8 @@ SWITCH: for ($::FORM{'knob'}) { /^accept$/ && CheckonComment( "accept" ) && do { DoConfirm(); ChangeStatus('ASSIGNED'); - if (Param("musthavemilestoneonaccept")) { + if (Param("musthavemilestoneonaccept") && + scalar(@{$::target_milestone{$::FORM{'product'}}}) > 1) { if (Param("usetargetmilestone")) { $requiremilestone = 1; }