From 0844fe9fc6d2d5293fad1384d2955dedf30fc8c4 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Fri, 27 Aug 2010 00:27:08 -0300 Subject: Bug 479400: Add the ability to show or hide particular custom fields based on multiple values of another field (visibility controllers) r/a=mkanat --- template/en/default/bug/field.html.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'template/en/default/bug/field.html.tmpl') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 49cf718cc..34347b21c 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -42,9 +42,7 @@ #%] [% SET hidden = 0 %] -[% IF field.visibility_field.defined AND bug - AND !field.visibility_value.is_set_on_bug(bug) -%] +[% IF bug AND !field.is_visible_on_bug(bug) %] [% SET hidden = 1 %] [% END %] -- cgit v1.2.3-24-g4f1b