aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-01-04 23:51:02 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2016-01-04 23:51:02 +0100
commit04004a62e2f190d6cfb3bd6965e9054125b56c47 (patch)
tree234c294322e9a63174a462d430d7f2e1e5e74200 /template/en/default/global
parent26a693adb179c4a50272014c97b8f7e52efbea98 (diff)
downloadbugs-04004a62e2f190d6cfb3bd6965e9054125b56c47.tar
bugs-04004a62e2f190d6cfb3bd6965e9054125b56c47.tar.gz
bugs-04004a62e2f190d6cfb3bd6965e9054125b56c47.tar.bz2
bugs-04004a62e2f190d6cfb3bd6965e9054125b56c47.tar.xz
bugs-04004a62e2f190d6cfb3bd6965e9054125b56c47.zip
Bug 1191706: When editing flag types, components do not match the selected product when classifications are enabled
r/a=dkl
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/js-products.html.tmpl5
1 files changed, 2 insertions, 3 deletions
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 %]