diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index 0d511c072a..617ac0c5a7 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -1254,14 +1254,24 @@ if (empty($details)) { Display::return_icon('pdf.png', get_lang('ExportToPDF'), [], ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'mySpace/session.php?' .http_build_query( - ['action' => 'export_to_pdf', 'type' => 'attendance', 'session_to_export' => $sId] + [ + 'student' => $student_id, + 'action' => 'export_to_pdf', + 'type' => 'attendance', + 'session_to_export' => $sId, + ] ) ); $sessionAction .= Display::url( Display::return_icon('pdf.png', get_lang('CertificateOfAchievement'), [], ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'mySpace/session.php?' .http_build_query( - ['action' => 'export_to_pdf', 'type' => 'achievement', 'session_to_export' => $sId] + [ + 'student' => $student_id, + 'action' => 'export_to_pdf', + 'type' => 'achievement', + 'session_to_export' => $sId, + ] ) ); } @@ -1541,7 +1551,6 @@ if (empty($details)) { foreach ($hookContents as $hookContent) { $contentToExport[] = strip_tags($hookContent['value']); - echo Display::tag('td', $hookContent['value'], $hookContent['attrs']); } }