Fixed Survey expression validation handling of verbatim values
This commit is contained in:
parent
7a3ecea4bb
commit
639a3398f0
1 changed files with 7 additions and 1 deletions
|
|
@ -44,7 +44,13 @@ Returns the recorded response value for the answer to question_variable
|
|||
|
||||
sub value {
|
||||
my $key = shift;
|
||||
_validateVariable($key, 'value');
|
||||
|
||||
# Verbatim values are valid variable + _verbatim
|
||||
if (my ($verbatimKey) = $key =~ m/(.+)_verbatim/) {
|
||||
_validateVariable($verbatimKey, 'value');
|
||||
} else {
|
||||
_validateVariable($key, 'value');
|
||||
}
|
||||
my $value = $tags->{$key} || $values->{$key};
|
||||
if (ref $value eq 'ARRAY') {
|
||||
my $joined = join ', ', @$value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue