From 816eb1e9bd788b2b3468481281793639c824996d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 25 Feb 2008 22:06:24 +0000 Subject: =?UTF-8?q?Bug=20415652:=20Implement=20Bugzilla->active=5Fcustom?= =?UTF-8?q?=5Ffields=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20B?= =?UTF-8?q?uclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/create/create.html.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'template/en/default/bug/create/create.html.tmpl') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 8bc4ab465..c8fd0fc10 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -421,10 +421,9 @@ function handleWantsAttachment(wants_attachment) { [% USE Bugzilla %] - [% custom_fields = Bugzilla.get_fields({ obsolete => 0, custom => 1, - enter_bug => 1 }) %] - [% FOREACH field = custom_fields %] + [% FOREACH field = Bugzilla.active_custom_fields %] + [% NEXT UNLESS field.enter_bug %] [% SET value = ${field.name} IF ${field.name}.defined %] [% PROCESS bug/field.html.tmpl editable=1 value_span=3 %] -- cgit v1.2.1