Skip to content
Snippets Groups Projects
Commit ce3b8e5c authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: broken features with multicompany

parent edc84f41
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,10 @@ if (! defined('NOREQUIREDB'))
{
$conf->entity = DOLENTITY;
}
// TODO Multicompany Remove this.
else if (!empty($_COOKIE['DOLENTITY'])) // For other application with MultiCompany module
{
$conf->entity = $_COOKIE['DOLENTITY'];
}
else if (! empty($conf->multicompany->force_entity) && is_int($conf->multicompany->force_entity)) // To force entity in login page
{
$conf->entity = $conf->multicompany->force_entity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment