diff --git a/mod/lti/service/memberships/classes/local/service/memberships.php b/mod/lti/service/memberships/classes/local/service/memberships.php index ed6a0713ac4..052ef3a9b39 100644 --- a/mod/lti/service/memberships/classes/local/service/memberships.php +++ b/mod/lti/service/memberships/classes/local/service/memberships.php @@ -229,8 +229,10 @@ class memberships extends \mod_lti\local\ltiservice\service_base { $user->id, $lti->servicesalt, $lti->typeid)); + // Not per specification but added to comply with earlier version of the service. + $member->resultSourcedId = $message->lis_result_sourcedid; } - $membership->message = $message; + $membership->message = [$message]; } foreach ($includedcapabilities as $capabilityname => $capability) {