Skip to content

Commit

Permalink
#459 [Session] fix: retrieve attendancesheet document instead of the …
Browse files Browse the repository at this point in the history
…old one
  • Loading branch information
evarisk-micka committed Dec 22, 2023
1 parent 85a3f86 commit 55670a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 55670a8

Please sign in to comment.