Skip to content

Commit

Permalink
Bugfix: GH-287 subscription via starting node
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Oct 7, 2024
1 parent 02dc0a7 commit 4cde256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static function enroll_starting_nodes_participants($adelelp, $data, $upda
foreach ($enrolledusers as $user) {
self::subscribe_user_course($data, $user);
$userparams->relateduserid = $user->id;
enrollment::subscribe_user_to_learning_path($learningpath, $userparams, $coursecontext->instanceid);
enrollment::subscribe_user_to_learning_path($learningpath, $userparams, $data->courseid);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lang/en/adele.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$string['mform_options_userlist_all'] = 'Everyone sees overview of all subscribed participants results';
$string['mform_options_userlist_only'] = 'Everyone sees only their own results';
$string['mform_options_participantslist_this_course'] = 'Everyone who is subscribed to that course';
$string['mform_options_participantslist_starting_courses'] = 'Everyone is subscribed who is in one starting node';
$string['mform_options_participantslist_starting_courses'] = 'Everyone who is subscribed to at least one starting node';
$string['mform_options_create_learningpath'] = 'Create learning path';
$string['mform_options_link_create_learningpath'] = 'Link to learning path creation';
$string['mform_options_no_selection'] = 'No selection';
Expand Down

0 comments on commit 4cde256

Please sign in to comment.