Works on multi-company module
This commit is contained in:
parent
9a252af8e0
commit
ee7e8d8b15
@ -211,12 +211,11 @@ if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $rowspan++;
|
|||||||
// Entity field
|
// Entity field
|
||||||
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY) && ! $disabled)
|
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY) && ! $disabled)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/multicompany/class/multicompany.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/multicompany/class/actions_multicompany.class.php');
|
||||||
|
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$mc = new Multicompany($db);
|
$mc = new ActionsMulticompany($db);
|
||||||
$mc->getEntities();
|
|
||||||
|
|
||||||
$select_entity = $mc->select_entities($mc->entities,$conf->entity,'tabindex="2"');
|
$select_entity = $mc->select_entities($mc->entities,$conf->entity,'tabindex="2"');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user