Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
ldestailleur
2025-08-14 00:54:22 +02:00
4 changed files with 7 additions and 4 deletions

View File

@@ -8780,7 +8780,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);
}