Update usergroup.class.php

This commit is contained in:
Frédéric FRANCE 2020-04-21 16:14:38 +02:00 committed by GitHub
parent 7b99ebfca5
commit d3c5173c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,6 +654,9 @@ class UserGroup extends CommonObject
global $user, $conf;
$this->datec = dol_now();
if (empty($this->nom) && !empty($this->name)) {
$this->nom = $this->name;
}
if (!isset($this->entity)) $this->entity = $conf->entity; // If not defined, we use default value
$entity = $this->entity;