From: David Lawrence Date: Fri, 2 Oct 2015 14:12:09 +0000 (+0000) Subject: Bug 1209971: Suggested reviewers should exclude the current user from the list displayed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a62094e8294c2dedeb424645b1c6afb1bdced55;p=thirdparty%2Fbugzilla.git Bug 1209971: Suggested reviewers should exclude the current user from the list displayed --- diff --git a/extensions/Review/template/en/default/hook/global/header-start.html.tmpl b/extensions/Review/template/en/default/hook/global/header-start.html.tmpl index 8bc72ecdb..3da136f41 100644 --- a/extensions/Review/template/en/default/hook/global/header-start.html.tmpl +++ b/extensions/Review/template/en/default/hook/global/header-start.html.tmpl @@ -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 %] ],