Form/* now all use getOriginalValue and getDefaultValue. This resolves the Layout bug where all the check lists could not be unchecked. Tests were updated, but still need a major overhaul.
This commit is contained in:
parent
96b7047d22
commit
173c2a12cd
42 changed files with 173 additions and 76 deletions
|
|
@ -110,6 +110,19 @@ sub getDefaultValue {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getOriginalValue( [ value ] )
|
||||
|
||||
See WebGUI::Form::Control::getOriginalValue()
|
||||
|
||||
=cut
|
||||
|
||||
sub getOriginalValue{
|
||||
my $self = shift;
|
||||
return $self->WebGUI::Form::Control::getOriginalValue(@_);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 isDynamicCompatible ( )
|
||||
|
||||
A class method that returns a boolean indicating whether this control is compatible with the DynamicField control.
|
||||
|
|
@ -137,7 +150,7 @@ sub toHtml {
|
|||
foreach my $key (keys %{$options}) {
|
||||
$i++;
|
||||
my $checked = 0;
|
||||
if ($self->get('value') eq $key) {
|
||||
if ($self->getOriginalValue() eq $key) {
|
||||
$checked = 1;
|
||||
}
|
||||
$output .= WebGUI::Form::Radio->new($self->session, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue