FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 14:24:54 +02:00
parent 18d6a95a7d
commit 45248e1dbd

View File

@ -165,7 +165,7 @@ class StockTransferLine extends CommonObjectLine
$this->db = $db;
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'])) $this->fields['entity']['enabled'] = 0;
if (!isModEnabled('multicompany') && isset($this->fields['entity'])) $this->fields['entity']['enabled'] = 0;
// Example to show how to set values of fields definition dynamically
/*if ($user->rights->stocktransfer->stocktransferline->read) {