mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX #25223
This commit is contained in:
parent
76d6a30d48
commit
ce6b2d06db
|
|
@ -77,7 +77,10 @@ if (!$sortfield) {
|
|||
$object = new Don($db);
|
||||
$object->fetch($id, $ref);
|
||||
|
||||
$upload_dir = $conf->don->dir_output.'/'.get_exdir($filename, 0, 0, 0, $object, 'donation').'/'.dol_sanitizeFileName($object->ref);
|
||||
if ($id > 0 || !empty($ref)) {
|
||||
$upload_dir = $conf->don->multidir_output[$object->entity ? $object->entity : $conf->entity]."/".get_exdir(0, 0, 0, 1, $object);
|
||||
}
|
||||
|
||||
$modulepart = 'don';
|
||||
|
||||
$permissiontoadd = $user->rights->don->creer; // Used by the include of actions_dellink.inc.php
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user