Merge branch 'MDL_74310_master' of https://github.com/cengage/moodle

This commit is contained in:
Jake Dallimore 2022-06-13 11:45:55 +08:00
commit 49cb3cbbef

View file

@ -93,6 +93,10 @@ class restore_ltiservice_gradebookservices_subplugin extends restore_subplugin {
$newtoolproxyid = null;
}
if ($data->ltilinkid != null) {
if ($data->ltilinkid != $this->get_old_parentid('lti')) {
// This is a linked item, but not for the current lti link, so skip it.
return;
}
$ltilinkid = $this->get_new_parentid('lti');
} else {
$ltilinkid = null;