Modify return value of the component to an array
This commit is contained in:
parent
ce6eb14ca8
commit
1fca1f9f62
1 changed files with 6 additions and 2 deletions
|
@ -4,7 +4,7 @@ Dam::Components::Controls::MultiCheck
|
||||||
|
|
||||||
=head1 SYNOPSIS
|
=head1 SYNOPSIS
|
||||||
|
|
||||||
my ($check_1, $check_2, ...) = Component__Get(CONTROL_MULTICHECK, ['multicheck']);
|
my @checks = Component__Get(CONTROL_MULTICHECK, ['multicheck']);
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
|
@ -123,7 +123,11 @@ sub Get {
|
||||||
|
|
||||||
$id = $ID_DEFAULT if is_empty($id);
|
$id = $ID_DEFAULT if is_empty($id);
|
||||||
|
|
||||||
return strval_join(',', cgiapp_multi($id));
|
my @checks = cgiapp_multi($id);
|
||||||
|
for (@checks) {
|
||||||
|
$_ =~ s/^'|'$//g;
|
||||||
|
}
|
||||||
|
return @checks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue