From e205a159e30c9d8980fb63d71ba272d5fcfdd565 Mon Sep 17 00:00:00 2001 From: Simon Coggins Date: Tue, 22 Apr 2014 14:11:52 +1200 Subject: [PATCH] MDL-45212 scorm: Disable sorting on unsortable columns in SCORM reports --- mod/scorm/report/basic/report.php | 3 +++ mod/scorm/report/interactions/report.php | 2 ++ mod/scorm/report/objectives/report.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/mod/scorm/report/basic/report.php b/mod/scorm/report/basic/report.php index 899a858f79d..9f7a137fd54 100644 --- a/mod/scorm/report/basic/report.php +++ b/mod/scorm/report/basic/report.php @@ -167,6 +167,9 @@ class scorm_basic_report extends scorm_default_report { $table->no_sorting('start'); $table->no_sorting('finish'); $table->no_sorting('score'); + $table->no_sorting('checkbox'); + $table->no_sorting('picture'); + if ( $scoes ) { foreach ($scoes as $sco) { if ($sco->launch!='') { diff --git a/mod/scorm/report/interactions/report.php b/mod/scorm/report/interactions/report.php index 866101affd7..a424d85eadd 100644 --- a/mod/scorm/report/interactions/report.php +++ b/mod/scorm/report/interactions/report.php @@ -222,6 +222,8 @@ class scorm_interactions_report extends scorm_default_report { $table->no_sorting('start'); $table->no_sorting('finish'); $table->no_sorting('score'); + $table->no_sorting('checkbox'); + $table->no_sorting('picture'); for($id = 0; $id < $questioncount; $id++) { if ($displayoptions['qtext']) { diff --git a/mod/scorm/report/objectives/report.php b/mod/scorm/report/objectives/report.php index 38a6f574052..4a450278319 100644 --- a/mod/scorm/report/objectives/report.php +++ b/mod/scorm/report/objectives/report.php @@ -237,6 +237,8 @@ class scorm_objectives_report extends scorm_default_report { $table->no_sorting('start'); $table->no_sorting('finish'); $table->no_sorting('score'); + $table->no_sorting('checkbox'); + $table->no_sorting('picture'); foreach ($scoes as $sco) { if ($sco->launch != '') {