Fixed bug 725211

This commit is contained in:
JT Smith 2003-05-07 00:48:00 +00:00
parent 402d22e8c9
commit af4efc0333
2 changed files with 6 additions and 4 deletions

View file

@ -412,9 +412,10 @@ The name of the property to retrieve the value for.
=cut
sub getValue {
my $currentValue = $_[0]->get($_[1]);
if (exists $session{form}{$_[1]}) {
return $session{form}{$_[1]};
} elsif (defined $_[0]->get($_[1])) {
} elsif (defined $currentValue) {
return $_[0]->get($_[1]);
} else {
return $_[0]->getDefaultValue($_[1]);