Commit 2bd074dc authored by ghendricks%novell.com's avatar ghendricks%novell.com

Bug 528262 - Tabular reports ignore disabled field values despite being selected

patch by ghendricks@novell.com, r=mkanat, a=mkanat
parent e4dfffc2
...@@ -333,13 +333,12 @@ sub get_names { ...@@ -333,13 +333,12 @@ sub get_names {
my ($names, $isnumeric, $field) = @_; my ($names, $isnumeric, $field) = @_;
# These are all the fields we want to preserve the order of in reports. # These are all the fields we want to preserve the order of in reports.
my %fields = ('priority' => get_legal_field_values('priority'), my %fields;
'bug_severity' => get_legal_field_values('bug_severity'), my @select_fields = Bugzilla->get_fields({ is_select => 1 });
'rep_platform' => get_legal_field_values('rep_platform'), foreach my $field (@select_fields) {
'op_sys' => get_legal_field_values('op_sys'), my @names = map($_->name, @{$field->legal_values});
'bug_status' => get_legal_field_values('bug_status'), $fields{$field->name} = \@names;
'resolution' => [' ', @{get_legal_field_values('resolution')}]); }
my $field_list = $fields{$field}; my $field_list = $fields{$field};
my @sorted; my @sorted;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment