Issue Bug Closed

#83477Form finisher parseOption fails with MultiCheckbox / MultiSelect

Ronald Kools 01/04/18, 19:08 updated 10/02/18, 10:53

Description

I have a form with a field called “newsletter”, which enables you to select 1 or more newsletters using a MultiCheckbox.

However, when you use parseOption on this field the values – that are actually correcty retrieved in $value before the if-statement below is executed – are discarded because $value is only allowed as a string or numeric value:

Line 208:
@
if (!is_string($value) && !is_numeric($value)) {
$value = ‘{’ . $match1 . ‘}’;
}
@

I would expect that it would be returning an array of parsed options instead of ‘{newsletter}’.

Reviews 2