fix DocumentPreview on holiday documents
This commit is contained in:
parent
960319fd8a
commit
58ae45a88b
@ -1373,7 +1373,7 @@ class FormFile
|
|||||||
}
|
}
|
||||||
// Preview link
|
// Preview link
|
||||||
if (!$editline) {
|
if (!$editline) {
|
||||||
print $this->showPreview($file, $modulepart, $filepath, 0, '&entity='.(!empty($object->entity) ? $object->entity : $conf->entity));
|
print $this->showPreview($file, $modulepart, $filepath, 0, 'entity='.(!empty($object->entity) ? $object->entity : $conf->entity));
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|||||||
@ -349,7 +349,7 @@ if ($object->id) {
|
|||||||
$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).'/';
|
$relativepathwithnofile = dol_sanitizeFileName($object->ref).'/';
|
||||||
$savingdocmask = dol_sanitizeFileName($object->ref).'-__file__';
|
$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';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user