Update evaluation.class.php

This commit is contained in:
Laurent Destailleur 2022-12-22 14:45:56 +01:00 committed by GitHub
parent 5686ffd9fa
commit bb1659fb70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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