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 {
sub is_default {
my $self = shift;
my $param_value =
Bugzilla->params->{ $self->DEFAULT_MAP->{$self->field->name} };
return 0 if !defined $param_value;
return $self->name eq $param_value ? 1 : 0;
my $name = $self->DEFAULT_MAP->{$self->field->name};
# If it doesn't exist in DEFAULT_MAP, then there is no parameter
# related to this field.
return 0 unless $name;
return ($self->name eq Bugzilla->params->{$name}) ? 1 : 0;
}
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