fix [ 1310360 ] WebGUI::FormProcessor::checkbox not working correctly

This commit is contained in:
Matthew Wilson 2005-10-14 19:31:06 +00:00
parent 8d18842efa
commit 671bcb3c1b

View file

@ -97,6 +97,24 @@ sub getName {
}
#-------------------------------------------------------------------
=head2 getValueFromPost ( )
Retrieves a value from a form GET or POST and returns it. If the value comes back as undef, this method will return undef.
=cut
sub getValueFromPost {
my $self = shift;
my $formValue = $session{cgi}->param($self->{name});
if (defined $formValue) {
return $formValue;
} else {
return undef;
}
}
#-------------------------------------------------------------------
=head2 toHtml ( )