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 --- importxml.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'importxml.pl') diff --git a/importxml.pl b/importxml.pl index 80506971c..1ed9253b8 100755 --- a/importxml.pl +++ b/importxml.pl @@ -1028,9 +1028,9 @@ sub process_bug { push( @values, $status ); # Custom fields - foreach my $custom_field (Bugzilla->custom_field_names) { + foreach my $field (Bugzilla->active_custom_fields) { + my $custom_field = $field->name; next unless defined($bug_fields{$custom_field}); - my $field = new Bugzilla::Field({name => $custom_field}); if ($field->type == FIELD_TYPE_FREETEXT) { push(@query, $custom_field); push(@values, clean_text($bug_fields{$custom_field})); -- cgit v1.2.3-24-g4f1b