Fix entity was set to 0 on group creation
This commit is contained in:
parent
a9ddf2a5ad
commit
e5e317bae3
@ -138,7 +138,7 @@ if (empty($reshook)) {
|
||||
if (!empty($conf->multicompany->enabled) && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
|
||||
$object->entity = 0;
|
||||
} else {
|
||||
$object->entity = GETPOST("entity");
|
||||
$object->entity = GETPOSTISSET("entity") ? GETPOST("entity") : $conf->entity;
|
||||
}
|
||||
|
||||
$db->begin();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user