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:
Florian Mortgat 2025-11-04 13:06:58 +01:00 committed by GitHub
parent 534d4ed4bc
commit a16f3bdf31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);