From d0ba1c37fa3fa5cd8d691edf82652f2b3488568d Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Mon, 18 Apr 2011 09:57:11 +0000 Subject: [PATCH] New: works on sharings between entities --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 3446ec5f90c..33496618019 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -560,7 +560,7 @@ class CommonObject if ($this->element == 'societe') $alias = 'te'; // Sharings between entities - if ($conf->global->MAIN_MODULE_MULTICOMPANY) + if ($conf->global->MAIN_MODULE_MULTICOMPANY && $this->ismultientitymanaged == 1) { dol_include_once('/multicompany/class/actions_multicompany.class.php'); $mc = new ActionsMulticompany($db); -- GitLab