MDL-62993 ltiservice_memberships: make message an array per spec

Also added resultSourcedId to member for BC.
This commit is contained in:
Claude Vervoort 2018-07-26 11:20:04 -04:00 committed by Mark Nelson
parent 0180369b27
commit 29acede1f0

View File

@ -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) {