]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1026726: filter_wants should be updated to allow exclude_fields higher precedence...
authorDavid Lawrence <dkl@redhat.com>
Wed, 18 Jun 2014 15:30:34 +0000 (15:30 +0000)
committerDavid Lawrence <dkl@redhat.com>
Wed, 18 Jun 2014 15:30:34 +0000 (15:30 +0000)
r=glob,a=glob

Bugzilla/WebService/Util.pm

index bba6122e590655bd2e265d238b5dd0f9f5b3796a..26558fc6ac040d37ff2ffaa5266a6d017d48332a 100644 (file)
@@ -154,14 +154,14 @@ sub filter_wants($$;$$) {
         delete $exclude{$key};
     }
 
-    # If the user has asked to include all or exclude all
-    return $cache->{$field} = 0 if $exclude_types{'all'};
-    return $cache->{$field} = 1 if $include_types{'all'};
-
     # Explicit inclusion/exclusion
     return $cache->{$field} = 0 if $exclude{$field};
     return $cache->{$field} = 1 if $include{$field};
 
+    # If the user has asked to include all or exclude all
+    return $cache->{$field} = 0 if $exclude_types{'all'};
+    return $cache->{$field} = 1 if $include_types{'all'};
+
     # If the user has not asked for any fields specifically or if the user has asked
     # for one or more of the field's types (and not excluded them)
     foreach my $type (keys %field_types) {