summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-12-06 18:24:33 +0100
committerByron Jones <bjones@mozilla.com>2013-12-06 18:24:33 +0100
commit07f5353454ce64657544640eca84dd06769dd8a3 (patch)
tree4176c277aada217cc365f0940d84692598c5cdc8 /extensions/Review/template
parent5d5c9d240d31d9f19068272801f1ea9fe62b64e9 (diff)
downloadbugzilla-07f5353454ce64657544640eca84dd06769dd8a3.tar.gz
bugzilla-07f5353454ce64657544640eca84dd06769dd8a3.tar.xz
Bug 942029: review suggestions only shows the first mentor
Diffstat (limited to 'extensions/Review/template')
-rw-r--r--extensions/Review/template/en/default/hook/global/header-start.html.tmpl14
1 files changed, 8 insertions, 6 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 585041e99..0c276ad8c 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
@@ -23,26 +23,28 @@
[% IF bug %]
[%# create attachment %]
- [% mentor = bug.mentor %]
+ [% mentors = bug.mentors %]
[% product_obj = bug.product_obj %]
[% component_obj = bug.component_obj %]
[% ELSIF attachment.bug %]
[%# edit attachment %]
- [% mentor = attachment.bug.mentor %]
+ [% mentors = attachment.bug.mentors %]
[% product_obj = attachment.bug.product_obj %]
[% component_obj = attachment.bug.component_obj %]
[% ELSE %]
[%# create bug %]
- [% mentor = '' %]
+ [% mentors = [] %]
[% product_obj = product %]
[% component_obj = 0 %]
[% END %]
[% review_js = BLOCK %]
review_suggestions = {
- [% IF mentor %]
- _mentor: [% PROCESS reviewer u = mentor %],
- [% END %]
+ _mentors: [
+ [% FOREACH u = mentors %]
+ [% PROCESS reviewer %][% "," UNLESS loop.last %]
+ [% END %]
+ ],
[% IF product_obj.reviewers %]
_product: [