handle the values 0 and empty string in getOriginalValue
This commit is contained in:
parent
d2413148a8
commit
b143376cf0
1 changed files with 3 additions and 1 deletions
|
|
@ -419,7 +419,9 @@ Returns the either the "value" or "defaultValue" passed in to the object in that
|
|||
|
||||
sub getOriginalValue {
|
||||
my $self = shift;
|
||||
return $self->get("value") || $self->getDefaultValue();
|
||||
my $value = $self->get('value');
|
||||
return $value if (defined $value); ##Handle returning 0 and empty string
|
||||
return $self->getDefaultValue;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue