Merge pull request #16262 from bb2a/UPPER

Update commonobject.class.php add in setUpperOrLowerCase
This commit is contained in:
Laurent Destailleur 2021-02-11 20:00:57 +01:00 committed by GitHub
commit 20f5a05c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -638,12 +638,15 @@ abstract class CommonObject
$this->lastname = dol_ucwords(dol_strtolower($this->lastname));
$this->firstname = dol_ucwords(dol_strtolower($this->firstname));
$this->name = dol_ucwords(dol_strtolower($this->name));
$this->name_alias = dol_ucwords(dol_strtolower($this->name_alias));
}
if (!empty($conf->global->MAIN_ALL_TO_UPPER)) {
$this->lastname = dol_strtoupper($this->lastname);
$this->name = dol_strtoupper($this->name);
$this->name_alias = dol_strtoupper($this->name_alias);
}
if (!empty($conf->global->MAIN_ALL_TOWN_TO_UPPER)) {
$this->address = dol_strtoupper($this->address);
$this->town = dol_strtoupper($this->town);
}
}