From 0a62094e8294c2dedeb424645b1c6afb1bdced55 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 2 Oct 2015 14:12:09 +0000 Subject: Bug 1209971: Suggested reviewers should exclude the current user from the list displayed --- .../Review/template/en/default/hook/global/header-start.html.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extensions/Review') 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 %] ], -- cgit v1.2.3-24-g4f1b