From f709156da6e562a4466d45c9422ff0a111aaa7e0 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 4 Jan 2016 23:47:11 +0100 Subject: Bug 1191706: When editing flag types, components do not match the selected product when classifications are enabled r=dkl --- template/en/default/global/js-products.html.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/js-products.html.tmpl b/template/en/default/global/js-products.html.tmpl index e40a3e3ae..940a5e64d 100644 --- a/template/en/default/global/js-products.html.tmpl +++ b/template/en/default/global/js-products.html.tmpl @@ -8,14 +8,13 @@ [%# The javascript block gets used in header.html.tmpl. %] [% javascript = BLOCK %] - var useclassification = false; // No classification level in use var first_load = true; // Is this the first time we load the page? var last_sel = []; // Caches last selection var cpts = new Array(); + [% n = 1 %] [% FOREACH prod = products %] - cpts['[% n %]'] = [ - [%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; + cpts['[% n %]'] = [[% FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%]]; [% n = n+1 %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b