From 5f5c284af750111839586ed763b1b6b77a5bb078 Mon Sep 17 00:00:00 2001 From: Vincent Dieltiens Date: Thu, 2 Dec 2021 18:20:06 +0100 Subject: [PATCH] Fixes https://github.com/Dolibarr/dolibarr/issues/19541 --- htdocs/expensereport/card.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 8880a60f351..38f7703f744 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1098,6 +1098,7 @@ if (empty($reshook)) { $arrayoffiles = GETPOST('attachfile', 'array'); if (is_array($arrayoffiles) && !empty($arrayoffiles[0])) { include_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php'; + $entityprefix = ($conf->entity != '1') ? $conf->entity.'/' : ''; $relativepath = 'expensereport/'.$object->ref.'/'.$arrayoffiles[0]; $ecmfiles = new EcmFiles($db); $ecmfiles->fetch(0, '', $relativepath);