Update usergroup.class.php
This commit is contained in:
parent
7b99ebfca5
commit
d3c5173c5b
@ -654,6 +654,9 @@ class UserGroup extends CommonObject
|
|||||||
global $user, $conf;
|
global $user, $conf;
|
||||||
|
|
||||||
$this->datec = dol_now();
|
$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
|
if (!isset($this->entity)) $this->entity = $conf->entity; // If not defined, we use default value
|
||||||
$entity = $this->entity;
|
$entity = $this->entity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user