Rolled back to 7186 removing CheckList changes

This commit is contained in:
Kaleb Murphy 2008-08-07 20:33:07 +00:00
parent ef56d94eaf
commit 2cce90f150
3 changed files with 0 additions and 41 deletions

View file

@ -39,7 +39,6 @@
- fixed: WebGUI Search errors - boolean search using filtering does not work
- Updated User->profileField method to return all default values as a scalar,
rather than just the first option in the list.
- fixed: Layout can now uncheck all Assets that are hidden. This also resolves any CheckList issue so that all buttons can be left blank.
7.5.18
- fixed: Collateral Image Manager broken in Firefox 3

View file

@ -86,41 +86,6 @@ sub getName {
return WebGUI::International->new($session, 'WebGUI')->get('941');
}
#-------------------------------------------------------------------
=head2 getValue ( [ value ] )
Returns an array or a carriage return ("\n") separated scalar depending upon whether you're returning the values into an array or a scalar. Also parses the input values (wherever they come from) to see if it's a scalar then it splits on \n.
=head3 value
Optional values to process, instead of POST input.
=cut
sub getValue {
my ($self, $value) = @_;
my @values = ();
if (defined $value) {
if (ref $value eq "ARRAY") {
@values = @{$value};
}
else {
$value =~ s/\r//g;
@values = split "\n", $value;
}
}
if (scalar @values < 1 && $self->session->request) {
my $value = $self->session->form->param($self->get("name"));
if (defined $value) {
@values = $self->session->form->param($self->get("name"));
}
}
return wantarray ? @values : join("\n",@values);
}
#-------------------------------------------------------------------
=head2 getSelectAllButton ( )

View file

@ -99,8 +99,3 @@ is( $inputs[0]->{value},
WebGUI::International->new($session,"Form_CheckList")->get("selectAll label"),
'The value is internationalized'
);
my $checkl1 = WebGUI::Form::CheckList->new($session, {'defaultValue' => 1});
is($checkl1->getValue(10), 10, "Get simple passed in value");
is($checkl1->getValue(), '', "Get empty value in value");
is($checkl1->get('defaultValue'), 1, "Check default value property");