mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user