Permalink
Browse files

MDL-34265 SCORM: Removing sorting from unsortable columns

  • Loading branch information...
1 parent 9592f5d commit 8119fbd7bd11bbfe6e7b6bc63ef02584ef9242d0 @ankitagarwal ankitagarwal committed Jul 17, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 mod/scorm/report/interactions/report.php
@@ -221,6 +221,18 @@ function display($scorm, $cm, $course, $download) {
$table->no_sorting('finish');
$table->no_sorting('score');
+ for($id = 0; $id < $questioncount; $id++) {
+ if ($displayoptions['qtext']) {
+ $table->no_sorting('question'.$id);
+ }
+ if ($displayoptions['resp']) {
+ $table->no_sorting('response'.$id);
+ }
+ if ($displayoptions['right']) {
+ $table->no_sorting('right'.$id);
+ }
+ }
+
foreach ($scoes as $sco) {
if ($sco->launch != '') {
$table->no_sorting('scograde'.$sco->id);

0 comments on commit 8119fbd

Please sign in to comment.