Skip to content
Browse files

MDL-22181 brute force hack to work around missing idnumber in module …

…fast info
  • Loading branch information...
1 parent 7bfaddb commit a7ff0a2fc5f9ef33fc099176479b1190668328a2 @skodak skodak committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/assignment/index.php
View
1 mod/assignment/index.php
@@ -59,6 +59,7 @@
$cm->timedue = $cms[$cm->id]->timedue;
$cm->assignmenttype = $cms[$cm->id]->assignmenttype;
+ $cm->idnumber = get_field('course_modules', 'idnumber', 'id', $cm->id); //hack
//Show dimmed if the mod is hidden
$class = $cm->visible ? '' : 'class="dimmed"';

0 comments on commit a7ff0a2

Please sign in to comment.
Something went wrong with that request. Please try again.