From 966b3ab85fec62b979bbceed7519f489645a4b76 Mon Sep 17 00:00:00 2001 From: Christian Foellmann Date: Thu, 28 Oct 2021 11:05:01 +0200 Subject: [PATCH] use ref prefix for file uploads --- htdocs/holiday/document.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/holiday/document.php b/htdocs/holiday/document.php index 17687a101ab..6986d75d630 100644 --- a/htdocs/holiday/document.php +++ b/htdocs/holiday/document.php @@ -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");