From 55670a827b23eecc593e2cacfb75e8abf36770c8 Mon Sep 17 00:00:00 2001 From: evarisk-micka Date: Fri, 22 Dec 2023 10:46:25 +0100 Subject: [PATCH] #459 [Session] fix: retrieve attendancesheet document instead of the old one --- 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 47a037b..f10fc9f 100644 --- a/view/session/session_card.php +++ b/view/session/session_card.php @@ -637,7 +637,7 @@ } else { $nbTrainee = 0; } - $fileList = dol_dir_list($upload_dir . '/' . $object->element . 'document' . '/' . $ref, 'files', 0, '', '', 'date', SORT_DESC); + $fileList = dol_dir_list($upload_dir . '/attendancesheetdocument' . '/' . $ref, 'files', 0, '', '', 'date', SORT_DESC); $fileList = array_merge($fileList, dol_dir_list($upload_dir . '/completioncertificatedocument' . '/' . $ref, 'files', 0, '', '', 'date', SORT_DESC)); if (!empty($fileList) && is_array($fileList)) { $fileType = ['attendancesheetdocument' => 0, 'completioncertificatedocument' => 0];