]> git.donarmstrong.com Git - debbugs.git/commitdiff
* only add usertags when there are no other selection methods active
authorDon Armstrong <don@donarmstrong.com>
Sun, 11 Jan 2009 06:46:21 +0000 (22:46 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 11 Jan 2009 06:46:21 +0000 (22:46 -0800)
cgi/pkgreport.cgi

index f8eb6a44aecb0091f54120f037f850826c8ded95..7be6241c75335f679639fcf3db93ebd128ba40cc 100755 (executable)
@@ -246,6 +246,7 @@ for my $user (map {split /[\s*,\s*]+/} make_list($param{users}||[])) {
 }
 
 if (defined $param{usertag}) {
+    my $do_not_add_usertags = grep {exists $param{$_}} keys %package_search_keys;
      for my $usertag (make_list($param{usertag})) {
          my %select_ut = ();
          my ($u, $t) = split /:/, $usertag, 2;
@@ -254,7 +255,7 @@ if (defined $param{usertag}) {
               $t = join(",", keys(%select_ut));
          }
          add_user($u,\%ut,\%bugusertags,\%seen_users,\%cats,\%hidden);
-         push @{$param{tag}}, split /,/, $t;
+         push @{$param{tag}}, split /,/, $t unless $do_not_add_usertags;
      }
 }