use ref prefix for file uploads

This commit is contained in:
Christian Foellmann 2021-10-28 11:05:01 +02:00
parent 449e1821fc
commit 966b3ab85f

View File

@ -346,12 +346,12 @@ if ($object->id) {
print dol_get_fiche_end();
$modulepart = 'holiday';
$permissiontoadd = $user->rights->holiday->write;
$permtoedit = $user->rights->holiday->write;
$param = '&id='.$object->id;
$relativepathwithnofile = $modulepart.'/'.dol_sanitizeFileName($object->ref).'/';
$savingdocmask = dol_sanitizeFileName($object->ref).'-__file__';
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
} else {
print $langs->trans("ErrorUnknown");