fix showInputField checkbox and radio type

This commit is contained in:
Alexis LAURIER 2021-07-14 12:02:03 +02:00
parent 4b9f71d20e
commit cd5e1d603e

View File

@ -5898,7 +5898,10 @@ abstract class CommonObject
$type = 'varchar'; $type = 'varchar';
} elseif (is_array($this->fields[$key]['arrayofkeyval'])) { } elseif (is_array($this->fields[$key]['arrayofkeyval'])) {
$param['options'] = $this->fields[$key]['arrayofkeyval']; $param['options'] = $this->fields[$key]['arrayofkeyval'];
$type = 'select'; $type = $this->fields[$key]['type'];
if(!in_array($type, array('select', 'checkbox', 'radio'))) {
$type = 'select';
}
} else { } else {
$param['options'] = array(); $param['options'] = array();
$type = $this->fields[$key]['type']; $type = $this->fields[$key]['type'];