Keep compatibility with old object declaration

This commit is contained in:
TuxGasy 2020-04-11 18:37:06 +02:00
parent eb63350d55
commit fecfe2e3a1

View File

@ -6032,6 +6032,11 @@ class Form
} }
if ($tmpfieldstoshow) $fieldstoshow = $tmpfieldstoshow; if ($tmpfieldstoshow) $fieldstoshow = $tmpfieldstoshow;
} }
else
{
$fieldstoshow = 't.ref'; // Keep compatibility with old object not declare yet fields
}
if (empty($fieldstoshow)) if (empty($fieldstoshow))
{ {
if (isset($objecttmp->fields['ref'])) { if (isset($objecttmp->fields['ref'])) {