LTI: Fix creation DL content item

pull/3725/head
Angel Fernando Quiroz Campos 5 years ago
parent b33e80a8ce
commit 5a850445c3
  1. 6
      plugin/ims_lti/item_return2.php

@ -53,13 +53,13 @@ try {
throw new Exception('Content items are missing'); throw new Exception('Content items are missing');
} }
foreach ($decodedJwt->{'https://purl.imsglobal.org/spec/lti-dl/claim/content_items'} as $contentItem) { foreach ($decodedJwt->{'https://purl.imsglobal.org/spec/lti-dl/claim/content_items'} as $contentItemClaim) {
/** @var LtiContentItemType|null $contentItem */ /** @var LtiContentItemType|null $contentItem */
$contentItem = null; $contentItem = null;
switch ($contentItem->type) { switch ($contentItemClaim->type) {
case 'ltiResourceLink': case 'ltiResourceLink':
$contentItem = new LtiResourceLink($contentItem); $contentItem = new LtiResourceLink($contentItemClaim);
default: default:
continue; continue;
} }

Loading…
Cancel
Save