summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-23 18:31:25 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-23 18:31:25 +0200
commit424bbc87bd2c105c4c5c6aab6c3f101606a400ec (patch)
treeb87890b9b3cfd4d9ce281b7eee52b5a387589c66 /Bugzilla/Bug.pm
parente50bddb296ca6ef5c7afb70da3de1aa2c55e7e77 (diff)
downloadbugzilla-424bbc87bd2c105c4c5c6aab6c3f101606a400ec.tar.gz
bugzilla-424bbc87bd2c105c4c5c6aab6c3f101606a400ec.tar.xz
Bug 1083258 - The size check for input <select>s on show_bug.cgi doesn't take into account is_active
r=dkl a=glob
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index aa5085fe7..aec7c1e82 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -3951,6 +3951,11 @@ sub choices {
my @resolutions = grep($_->name, @{ $resolution_field->legal_values });
$choices{'resolution'} = \@resolutions;
+ foreach my $key (keys %choices) {
+ my $value = $self->$key;
+ $choices{$key} = [grep { $_->is_active || $_->name eq $value } @{ $choices{$key} }];
+ }
+
$self->{'choices'} = \%choices;
return $self->{'choices'};
}