Merge pull request #18148 from AlexisLaurier/fix/CommonObjectShowInputFieldCheckboxAndRadio
fix showInputField checkbox and radio type
This commit is contained in:
commit
7281a51eff
@ -5917,7 +5917,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 = $this->fields[$key]['type'];
|
||||||
|
if(!in_array($type, array('select', 'checkbox', 'radio'))) {
|
||||||
$type = 'select';
|
$type = 'select';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$param['options'] = array();
|
$param['options'] = array();
|
||||||
$type = $this->fields[$key]['type'];
|
$type = $this->fields[$key]['type'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user