]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 171475: make new flags include all categories (product/component combinat...
authormyk%mozilla.org <>
Wed, 6 Nov 2002 07:45:56 +0000 (07:45 +0000)
committermyk%mozilla.org <>
Wed, 6 Nov 2002 07:45:56 +0000 (07:45 +0000)
r=joel

editflagtypes.cgi

index aed73f284a97105853e49babac85b40bf5907e28..e02603b0a06a07bc37935c8b3c6869f987a290c1 100755 (executable)
@@ -130,9 +130,11 @@ sub edit {
         $vars->{'type'}->{'exclusions'} = Bugzilla::FlagType::get_exclusions($::FORM{'id'});
     }
     # Otherwise set the target type (the minimal information about the type
-    # that the template needs to know) from the URL parameter.
+    # that the template needs to know) from the URL parameter and default
+    # the list of inclusions to all categories.
     else { 
-        $vars->{'type'} = { 'target_type' => $::FORM{'target_type'} }; 
+        $vars->{'type'} = { 'target_type' => $::FORM{'target_type'} , 
+                            'inclusions'  => ["__Any__:__Any__"] };
     }
     
     # Return the appropriate HTTP response headers.