use ref prefix for file uploads
This commit is contained in:
parent
449e1821fc
commit
966b3ab85f
@ -346,12 +346,12 @@ if ($object->id) {
|
|||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$modulepart = 'holiday';
|
|
||||||
$permissiontoadd = $user->rights->holiday->write;
|
$permissiontoadd = $user->rights->holiday->write;
|
||||||
$permtoedit = $user->rights->holiday->write;
|
$permtoedit = $user->rights->holiday->write;
|
||||||
$param = '&id='.$object->id;
|
$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';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
} else {
|
} else {
|
||||||
print $langs->trans("ErrorUnknown");
|
print $langs->trans("ErrorUnknown");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user