Permalink
Browse files

MDL-34265 SCORM: Removing sorting from unsortable columns

  • Loading branch information...
1 parent 3294034 commit 1868607ad6969221c26893db54f6a4953c3d5369 @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 1868607

Please sign in to comment.