Skip to content

Commit

Permalink
Merge pull request #307 from kaltura/KMS-20594-Undefined-index-submis…
Browse files Browse the repository at this point in the history
…sion-on-LTI-launch-37

KMS-20594 check if submission is set in ltirequest object
  • Loading branch information
noychn-kaltura authored Aug 11, 2020
2 parents 0b04d2e + 14a0f14 commit 309352c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion local/kaltura/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ function local_kaltura_request_lti_launch($ltirequest, $withblocks = true, $edit
$requestparams['custom_publishdata'] = local_kaltura_get_kaf_publishing_data();
$requestparams['custom_publishdata_encoded'] = '1';
$requestparams['custom_moodle_plugin_version'] = local_kaltura_get_config()->version;
$requestparams['assignment'] = $ltirequest['submission'];

if (isset($ltirequest['submission'])) {
$requestparams['assignment'] = $ltirequest['submission'];
}

// Specific settings for video presentation requests.
if (isset($ltirequest['custom_disable_add_new'])) {
Expand Down

0 comments on commit 309352c

Please sign in to comment.