diff options
Diffstat (limited to 'extensions/GuidedBugEntry/template/en')
-rw-r--r-- | extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl | 10 |
1 files changed, 9 insertions, 1 deletions
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 %] |