Merge pull request #17793 from ATM-Consulting/Fix_12.0_update_usergroup_label
update ->nom field if different from ->name
This commit is contained in:
commit
aafb074b41
@ -675,7 +675,7 @@ class UserGroup extends CommonObject
|
||||
{
|
||||
global $user, $conf;
|
||||
|
||||
if (empty($this->nom) && !empty($this->name)) {
|
||||
if ((empty($this->nom) || $this->nom != $this->name) && !empty($this->name)) {
|
||||
$this->nom = $this->name;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user