Skip to content

Commit

Permalink
fix the build lti module info: fetch correct lti module instead of op…
Browse files Browse the repository at this point in the history
…encast,

This PR fixes #377
  • Loading branch information
ferishili committed Nov 19, 2024
1 parent 158ded8 commit 345a4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/ltimodulemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public static function build_lti_modinfo($pluginid, $course, $title, $sectionid,
$moduleinfo->availability = $availability;

// Apply completion defaults.
$module = $DB->get_record('modules', ['name' => 'opencast']);
$module = $DB->get_record('modules', ['name' => 'lti'], '*', MUST_EXIST);
$defaults = manager::get_default_completion($course, $module);
if ($module) {
foreach ($defaults as $key => $value) {
Expand Down

0 comments on commit 345a4ed

Please sign in to comment.