update ->nom field if different from ->name

This commit is contained in:
atm-greg 2021-06-02 10:30:48 +02:00
parent 3187c096c3
commit f875bcfe09

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