Fix do not modify entity on group edit
https://www.dolibarr.fr/forum/t/etoile-globalgroup-dans-les-groupes-dutilisateurs-quelle-signification-quel-usage/38772/26
This commit is contained in:
parent
c7bb6c3c4c
commit
3dfd92e9c0
@ -218,7 +218,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;
|
||||
}
|
||||
|
||||
$ret = $object->update();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user