From 6919f41e51cacaa8f6b4ae7bcdbd010c8d6aefe5 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 5 Mar 2013 02:49:50 +0800 Subject: Bug 834119: add the ability to force users into using a custom bug format --- .../template/en/default/pages/guided_products.js.tmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'extensions/GuidedBugEntry/template/en/default') diff --git a/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl index 231681085..268fe06f8 100644 --- a/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl +++ b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl @@ -8,9 +8,17 @@ [%# this file allows us to pull in data defined in the BMO ext %] +[% IF formats %] + [% FOREACH product = formats %] + if (!products['[% product.key FILTER js %]']) [% ~%] + products['[% product.key FILTER js %]'] = {}; + products['[% product.key FILTER js %]'].format = '[% product.value FILTER js %]'; + [% END %] +[% END %] + [% IF products %] [% FOREACH product = products %] - if (!products['[% product.key FILTER js %]']) + if (!products['[% product.key FILTER js %]']) [% ~%] products['[% product.key FILTER js %]'] = {}; products['[% product.key FILTER js %]'].secgroup = '[% product.value FILTER js %]'; [% END %] -- cgit v1.2.3-24-g4f1b