Fix checkbox multiselect pre-selected value from get/post

This commit is contained in:
ATM john 2021-04-30 12:20:43 +02:00
parent 66bbc7f54f
commit 6c1e0919c8

View File

@ -1339,7 +1339,11 @@ class ExtraFields
}
elseif ($type == 'checkbox')
{
$value_arr = explode(',', $value);
$value_arr = $value;
if (!is_array($value))
{
$value_arr = explode(',', $value);
}
$out = $form->multiselectarray($keyprefix.$key.$keysuffix, (empty($param['options']) ?null:$param['options']), $value_arr, '', 0, '', 0, '100%');
}
elseif ($type == 'radio')