Fix checkbox multiselect pre-selected value from get/post
This commit is contained in:
parent
66bbc7f54f
commit
6c1e0919c8
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user