summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default/hook
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-10-02 16:12:09 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-10-02 16:12:09 +0200
commit0a62094e8294c2dedeb424645b1c6afb1bdced55 (patch)
tree0e32dcc0bf1fdb59543e2b3b9721b83dfe3f3787 /extensions/Review/template/en/default/hook
parentf992c47e20fead291326400fce54762010e1f687 (diff)
downloadbugzilla-0a62094e8294c2dedeb424645b1c6afb1bdced55.tar.gz
bugzilla-0a62094e8294c2dedeb424645b1c6afb1bdced55.tar.xz
Bug 1209971: Suggested reviewers should exclude the current user from the list displayed
Diffstat (limited to 'extensions/Review/template/en/default/hook')
-rw-r--r--extensions/Review/template/en/default/hook/global/header-start.html.tmpl4
1 files changed, 4 insertions, 0 deletions
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 %]
],