From 0c0b0a2a18c8f00c2160fa64d440da7e120ee6c5 Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Fri, 22 Dec 2023 17:46:42 +0100 Subject: [PATCH] #471 [Session] fix: better forcebuild doc --- view/session/session_card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/session/session_card.php b/view/session/session_card.php index 19cc824..e8e059e 100644 --- a/view/session/session_card.php +++ b/view/session/session_card.php @@ -549,7 +549,7 @@ } $fileList = []; foreach ($documentTypeArray as $documentTypeName) { - $fileList = array_merge($fileList, dol_dir_list($upload_dir . '/' . $documentTypeName . 'document' . '/' . $ref, 'files', 0, '(\.pdf)', '', 'date', SORT_DESC)); + $fileList = array_merge($fileList, dol_dir_list($upload_dir . '/' . $documentTypeName . 'document' . '/' . $object->ref, 'files', 0, '', '', 'date', SORT_DESC)); } if (!empty($fileList)) { $fileType = ['attendancesheetdocument' => 0, 'completioncertificatedocument' => 0];