diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index ad26e3e9b6d..5ba6b5553af 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -660,12 +660,6 @@ class UserGroup extends CommonObject $this->nom = $this->name; // Field for 'name' is called 'nom' in database } - $entity = $conf->entity; - if (!empty($conf->multicompany->enabled) && $conf->entity == 1) - { - $entity = $this->entity; - } - return $this->updateCommon($user, $notrigger); }