fix [ 1310360 ] WebGUI::FormProcessor::checkbox not working correctly
This commit is contained in:
parent
8d18842efa
commit
671bcb3c1b
1 changed files with 18 additions and 0 deletions
|
|
@ -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 ( )
|
=head2 toHtml ( )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue