From: Alexander Tereschenko Date: Sun, 16 Dec 2012 13:08:49 +0000 (+0100) Subject: Bug 806809: Custom field values with "Enabled for bugs" set to "No" break the values... X-Git-Tag: bugzilla-4.2.5~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1467b172520e0a3a79ce1137099b4621d1bbb0be;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 f1d5afd326..3133c159bf 100644 --- a/template/en/default/bug/field-events.js.tmpl +++ b/template/en/default/bug/field-events.js.tmpl @@ -55,6 +55,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 %]