]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 125066 - remove the need to set a milestone on accept for products with just...
authorgerv%gerv.net <>
Thu, 25 Apr 2002 03:07:57 +0000 (03:07 +0000)
committergerv%gerv.net <>
Thu, 25 Apr 2002 03:07:57 +0000 (03:07 +0000)
process_bug.cgi

index 35c24e24e7a13092234f45c70cfe8fb46a4ede6d..450b839f1e3502851ec0fa8aa991a41fe734c90a 100755 (executable)
@@ -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;
             }