]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1225902 - Show only flags with requestee in the "Flags You Have Requested" section
authorKohei Yoshino <kohei.yoshino@gmail.com>
Tue, 14 May 2019 21:22:33 +0000 (17:22 -0400)
committerGitHub <noreply@github.com>
Tue, 14 May 2019 21:22:33 +0000 (17:22 -0400)
extensions/MyDashboard/lib/Queries.pm
extensions/MyDashboard/web/js/flags.js

index 83cc84b8315b71fa2b2922ee88a75e604970af3f..e5dfd09bea0e5b7c532d45de6ac76d19b4953b4f 100644 (file)
@@ -14,6 +14,7 @@ use warnings;
 use Bugzilla;
 use Bugzilla::Bug;
 use Bugzilla::CGI;
+use Bugzilla::Constants;
 use Bugzilla::Search;
 use Bugzilla::Flag;
 use Bugzilla::Status qw(is_open_state);
@@ -258,6 +259,8 @@ sub query_flags {
   }
   else {
     $match_params->{'setter_id'} = $user->id;
+    # Exclude flags without a requestee, such as `in-testsuite?`
+    $match_params->{'requestee_id'} = NOT_NULL;
   }
 
   my $matched = Bugzilla::Flag->match($match_params);
index 33e5047b33f33d65c61158bf666eabbd07bb7424..3bdfebed7b1a119f338ceac7e65049803d0b4d27 100644 (file)
@@ -111,9 +111,7 @@ $(function () {
         };
 
         var requesteeFormatter = function(o) {
-            return o.value
-                ? o.value.htmlEncode()
-                : '<i>anyone</i>';
+            return o.value.htmlEncode();
         };
 
         var flagNameFormatter = function(o) {