From 4cde2568b998578c2bf94961f7315e7ce220a95e Mon Sep 17 00:00:00 2001 From: "jacob.viertel@wunderbyte.at" Date: Mon, 7 Oct 2024 11:41:56 +0200 Subject: [PATCH] Bugfix: GH-287 subscription via starting node --- classes/observer.php | 2 +- lang/en/adele.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/observer.php b/classes/observer.php index d5892ba..2b87c40 100755 --- a/classes/observer.php +++ b/classes/observer.php @@ -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); } } } diff --git a/lang/en/adele.php b/lang/en/adele.php index b2483eb..fbad8b6 100755 --- a/lang/en/adele.php +++ b/lang/en/adele.php @@ -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';