Commit a1d2460f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 504944: Use of uninitialized value in hash element at…

Bug 504944: Use of uninitialized value in hash element at Bugzilla/Field/Choice.pm line 253 - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 647249a7
...@@ -250,10 +250,11 @@ sub field { ...@@ -250,10 +250,11 @@ sub field {
sub is_default { sub is_default {
my $self = shift; my $self = shift;
my $param_value = my $name = $self->DEFAULT_MAP->{$self->field->name};
Bugzilla->params->{ $self->DEFAULT_MAP->{$self->field->name} }; # If it doesn't exist in DEFAULT_MAP, then there is no parameter
return 0 if !defined $param_value; # related to this field.
return $self->name eq $param_value ? 1 : 0; return 0 unless $name;
return ($self->name eq Bugzilla->params->{$name}) ? 1 : 0;
} }
sub is_static { sub is_static {
......
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