Skip to content

Commit

Permalink
Fix 'Lesson activity causes DB error' - https://moodle.org/mod/forum/…
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Nov 26, 2021
1 parent ef9a1a7 commit f4d71a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Version 3.9.1.8 - TBR
-----------------------------
1. Fix 'Lesson activity causes DB error' - https://moodle.org/mod/forum/discuss.php?d=429093#p1727967.

Version 3.9.1.7 - 15/11/2021
-----------------------------
Expand Down
2 changes: 1 addition & 1 deletion classes/activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ protected static function forum_meta(cm_info $modinst) {
* @return string
*/
protected static function lesson_meta(cm_info $modinst) {
return self::std_meta($modinst, '', '', '', '', '', 'attempted', true);
return self::std_meta($modinst, 'available', 'deadline', 'lessonid', 'timer', 'lessontime', 'attempted', true);
}

/**
Expand Down

0 comments on commit f4d71a8

Please sign in to comment.