2
0
forked from Wavyzz/dolibarr

fix CI v22 (#34935)

* fix CI v22

* Update admin.lang
This commit is contained in:
Frédéric FRANCE
2025-08-14 00:32:56 +02:00
committed by GitHub
parent 7c710a91d7
commit ccafcd6f91
2 changed files with 2 additions and 2 deletions

View File

@@ -8229,7 +8229,7 @@ function get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart = '
// Here, $object->id, $object->ref and $modulepart are required.
if (in_array($modulepart, array('societe', 'thirdparty')) && $object instanceOf Societe) {
// Special case for thirdparty, where the ref is a company name that is not unique so path on disk is using the ID instead of the ref
$path = dol_sanitizeFileName($object->id);
$path = dol_sanitizeFileName((string) $object->id);
} else {
$path = dol_sanitizeFileName(empty($object->ref) ? (string) ((is_object($object) && property_exists($object, 'id')) ? $object->id : '') : $object->ref);
}