From: Alexander Tereschenko Date: Sun, 16 Dec 2012 13:07:25 +0000 (+0100) Subject: Bug 806809: Custom field values with "Enabled for bugs" set to "No" break the values... X-Git-Tag: bugzilla-4.4rc2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd728c83460249d59164fcc2b77751fd7e86e69;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 %]