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:
Laurent Destailleur 2021-06-04 09:21:51 +02:00 committed by GitHub
commit aafb074b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}