cleaning up function in List form type
This commit is contained in:
parent
c7dac4aa42
commit
744751a86f
1 changed files with 5 additions and 16 deletions
|
|
@ -268,27 +268,16 @@ sub getOriginalValue {
|
|||
@values = @{$value};
|
||||
}
|
||||
else {
|
||||
$value =~ s/\r//g;
|
||||
$value =~ s/\r//g;
|
||||
@values = split "\n", $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(@values){
|
||||
return wantarray ? @values : join("\n",@values);
|
||||
if (@values) {
|
||||
return wantarray ? @values : join("\n",@values);
|
||||
}
|
||||
|
||||
foreach my $value ($self->getDefaultValue()) {
|
||||
if (scalar @values < 1 && defined $value) {
|
||||
if (ref $value eq "ARRAY") {
|
||||
@values = @{$value};
|
||||
}
|
||||
else {
|
||||
$value =~ s/\r//g;
|
||||
@values = split "\n", $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return wantarray ? @values : join("\n",@values);
|
||||
|
||||
return $self->getDefaultValue;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue