]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1209971: Suggested reviewers should exclude the current user from the list displayed
authorDavid Lawrence <dkl@mozilla.com>
Fri, 2 Oct 2015 14:12:09 +0000 (14:12 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 2 Oct 2015 14:12:09 +0000 (14:12 +0000)
extensions/Review/template/en/default/hook/global/header-start.html.tmpl

index 8bc72ecdb7d3599027edb3707dfc616bb1ea4e15..3da136f415103b924b76787c96472d1e9c58d146 100644 (file)
@@ -44,6 +44,7 @@
     _mentors: [
       [% FOREACH u = mentors %]
         [% NEXT IF NOT u.is_active %]
+        [% NEXT IF u.id == user.id %]
         [% PROCESS reviewer %][% "," UNLESS loop.last %]
       [% END %]
     ],
@@ -51,6 +52,7 @@
     [% IF product_obj.reviewers %]
       _product: [
         [% FOREACH u = product_obj.reviewers_objs %]
+          [% NEXT IF u.id == user.id %]
           [% PROCESS reviewer %][% "," UNLESS loop.last %]
         [% END %]
       ],
@@ -60,6 +62,7 @@
       [%# single component (create/edit attachment) %]
       '[% component_obj.name FILTER js %]': [
         [% FOREACH u = component_obj.reviewers_objs %]
+          [% NEXT IF u.id == user.id %]
           [% PROCESS reviewer %][% "," UNLESS loop.last %]
         [% END %]
       ],
@@ -69,6 +72,7 @@
         [% NEXT UNLESS c.reviewers %]
         '[% c.name FILTER js %]': [
           [% FOREACH u = c.reviewers_objs %]
+            [% NEXT IF u.id == user.id %]
             [% PROCESS reviewer %][% "," UNLESS loop.last %]
           [% END %]
         ],