From 816eb1e9bd788b2b3468481281793639c824996d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 25 Feb 2008 22:06:24 +0000 Subject: Bug 415652: Implement Bugzilla->active_custom_fields - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enter_bug.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index cce5a431e..ee362e302 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -383,8 +383,7 @@ $vars->{'cloned_bug_id'} = $cloned_bug_id; $vars->{'token'} = issue_session_token('createbug:'); -my @enter_bug_fields = Bugzilla->get_fields({ custom => 1, obsolete => 0, - enter_bug => 1 }); +my @enter_bug_fields = grep { $_->enter_bug } Bugzilla->active_custom_fields; foreach my $field (@enter_bug_fields) { $vars->{$field->name} = formvalue($field->name); } -- cgit v1.2.3-24-g4f1b