From 07f5353454ce64657544640eca84dd06769dd8a3 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 6 Dec 2013 09:24:33 -0800 Subject: Bug 942029: review suggestions only shows the first mentor --- .../template/en/default/hook/global/header-start.html.tmpl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'extensions/Review/template/en/default/hook/global') 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: [ -- cgit v1.2.3-24-g4f1b