Fix: Correct pb of warnings during install that appeared on some config due to multicompany changes.
This commit is contained in:
parent
49cb6a58b5
commit
b8fd6bb74c
@ -204,8 +204,12 @@ if (! defined('NOREQUIREUSER'))
|
|||||||
*/
|
*/
|
||||||
if (! defined('NOREQUIREDB'))
|
if (! defined('NOREQUIREDB'))
|
||||||
{
|
{
|
||||||
|
// TODO Should remove this to not define entity here but later once value of entity has been read from
|
||||||
|
// session in main.inc.php.
|
||||||
|
// master.inc.php (used also by scripts) should be safe of any command that depends on screen code.
|
||||||
$entityCookieName = "DOLENTITYID_dolibarr";
|
$entityCookieName = "DOLENTITYID_dolibarr";
|
||||||
$entity = $_COOKIE[$entityCookieName]?$_COOKIE[$entityCookieName]:1;
|
$entity = 1; // By default;
|
||||||
|
if (isset($_COOKIE[$entityCookieName])) $entity=$_COOKIE[$entityCookieName]?$_COOKIE[$entityCookieName]:1;
|
||||||
$conf->setValues($db,$entity);
|
$conf->setValues($db,$entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user