Merge pull request #13569 from tuxgasy/Fix_breaking_selectForFormsList

Keep compatibility with old object declaration
This commit is contained in:
Laurent Destailleur 2020-04-12 16:48:08 +02:00 committed by GitHub
commit b1bae5f3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6032,6 +6032,12 @@ class Form
}
if ($tmpfieldstoshow) $fieldstoshow = $tmpfieldstoshow;
}
else
{
// For backward compatibility
$objecttmp->fields['ref']=array('type'=>'varchar(30)', 'label'=>'Ref', 'showoncombobox'=>1);
}
if (empty($fieldstoshow))
{
if (isset($objecttmp->fields['ref'])) {