Skip to content

Commit

Permalink
MDL-45212 scorm: Disable sorting on unsortable columns in SCORM reports
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoggins committed Apr 22, 2014
1 parent a046134 commit e205a15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/scorm/report/basic/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ function display($scorm, $cm, $course, $download) {
$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!='') {
Expand Down
2 changes: 2 additions & 0 deletions mod/scorm/report/interactions/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ function display($scorm, $cm, $course, $download) {
$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']) {
Expand Down
2 changes: 2 additions & 0 deletions mod/scorm/report/objectives/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ public function display($scorm, $cm, $course, $download) {
$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 != '') {
Expand Down

0 comments on commit e205a15

Please sign in to comment.