FIX 16.0: extrafield of type link to category causes SQL error in selectForFormsList() (#36074)
* FIX 16.0 (up to 19.0): extrafield of type link to category causes SQL error in selectForFormsList * Apply suggestion from @atm-florianm
This commit is contained in:
parent
534d4ed4bc
commit
a16f3bdf31
1 changed files with 2 additions and 0 deletions
|
|
@ -7821,6 +7821,8 @@ class Form
|
|||
if ($tmpfieldstoshow) {
|
||||
$fieldstoshow = $tmpfieldstoshow;
|
||||
}
|
||||
} else if ($objecttmp->element === 'category') {
|
||||
$fieldstoshow = 't.label';
|
||||
} else {
|
||||
// For backward compatibility
|
||||
$objecttmp->fields['ref'] = array('type'=>'varchar(30)', 'label'=>'Ref', 'showoncombobox'=>1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue