diff options
author | Tiago Mello <timello@gmail.com> | 2010-08-24 22:25:49 +0200 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2010-08-24 22:25:49 +0200 |
commit | 85e75aba6a7131da9d63b1f628a27e986bb428c5 (patch) | |
tree | 62ea9dab6305ba21a67b1904523435365b53aae5 /Bugzilla/Search.pm | |
parent | e09c48b2f7668071264c975f9191cf41b493ef1c (diff) | |
download | bugzilla-85e75aba6a7131da9d63b1f628a27e986bb428c5.tar.gz bugzilla-85e75aba6a7131da9d63b1f628a27e986bb428c5.tar.xz |
Bug 586871: Convert all Bugzilla->get_fields calls to Bugzilla->fields
r/a=mkanat
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index abd3fd53e..cde1f8e35 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -557,7 +557,8 @@ sub COLUMNS { } # Do the actual column-getting from fielddefs, now. - foreach my $field (Bugzilla->get_fields({ obsolete => 0, buglist => 1 })) { + my @fields = @{ Bugzilla->fields({ obsolete => 0, buglist => 1 }) }; + foreach my $field (@fields) { my $id = $field->name; $id = $old_names{$id} if exists $old_names{$id}; my $sql; @@ -593,8 +594,8 @@ sub REPORT_COLUMNS { flagtypes.name keywords relevance); # Multi-select fields are not currently supported. - my @multi_selects = Bugzilla->get_fields( - { obsolete => 0, type => FIELD_TYPE_MULTI_SELECT }); + my @multi_selects = @{Bugzilla->fields( + { obsolete => 0, type => FIELD_TYPE_MULTI_SELECT })}; push(@no_report_columns, map { $_->name } @multi_selects); # If you're not a time-tracker, you can't use time-tracking |