Merge pull request #17442 from atm-john/11.0_fix_showInputField_checkbox_selection

FIX : Show input field checkbox selection
This commit is contained in:
Laurent Destailleur 2021-05-03 16:16:56 +02:00 committed by GitHub
commit e6b4f1eab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1339,7 +1339,10 @@ 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')