Skip to content

Commit

Permalink
Add check for ContentItemUpdateRequest message when setting return URL
Browse files Browse the repository at this point in the history
  • Loading branch information
spvickers committed Jan 18, 2022
1 parent 3a4be8c commit 4a14d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ public function getMessageParameters()
}
}
// Set return URL if available
if (!empty($this->messageParameters['lti_message_type']) && ($this->messageParameters['lti_message_type'] === 'ContentItemSelectionRequest') &&
if (!empty($this->messageParameters['lti_message_type']) &&
(($this->messageParameters['lti_message_type'] === 'ContentItemSelectionRequest') || ($this->messageParameters['lti_message_type'] === 'ContentItemUpdateRequest')) &&
!empty($this->messageParameters['content_item_return_url'])) {
$this->returnUrl = $this->messageParameters['content_item_return_url'];
}
Expand Down

0 comments on commit 4a14d3f

Please sign in to comment.