FIX php8 compatibility
This commit is contained in:
parent
f2069d0c5f
commit
1ec7f640a7
@ -239,7 +239,7 @@ class BOM extends CommonObject
|
|||||||
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
||||||
$this->fields['rowid']['visible'] = 0;
|
$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;
|
$this->fields['entity']['enabled'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1525,7 +1525,7 @@ class BOMLine extends CommonObjectLine
|
|||||||
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
||||||
$this->fields['rowid']['visible'] = 0;
|
$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;
|
$this->fields['entity']['enabled'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user