From: Alexander Tereschenko Date: Sun, 16 Dec 2012 13:06:17 +0000 (+0100) Subject: Bug 806809: Custom field values with "Enabled for bugs" set to "No" break the values... X-Git-Tag: bugzilla-4.5.1~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a781df59bad6432f021326a2e589a07dae81050c;p=thirdparty%2Fbugzilla.git Bug 806809: Custom field values with "Enabled for bugs" set to "No" break the values list if the field's values visibility depends on another field values r/a=LpSolit --- diff --git a/template/en/default/bug/field-events.js.tmpl b/template/en/default/bug/field-events.js.tmpl index d37f4257cd..8ec51a4412 100644 --- a/template/en/default/bug/field-events.js.tmpl +++ b/template/en/default/bug/field-events.js.tmpl @@ -44,6 +44,7 @@ [% FOREACH controlled_field = legal_value.controlled_values.keys %] [% SET cont_ids = [] %] [% FOREACH val = legal_value.controlled_values.$controlled_field %] + [% NEXT IF !val.is_active %] [% cont_ids.push(val.id) %] [% END %] [% NEXT IF !cont_ids.size %]