FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 14:15:53 +02:00
parent 45354e62aa
commit c513492569

View File

@ -188,7 +188,7 @@ class Position extends CommonObject
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
//$this->fields['rowid']['visible'] = 0;
}
if (empty($conf->multicompany->enabled) && isset($this->fields['entity'])) {
if (!isModEnabled('multicompany') && isset($this->fields['entity'])) {
$this->fields['entity']['enabled'] = 0;
}