mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-74310 mod_lti: fix ltilinkid on lineitems import
This commit is contained in:
parent
967d9b2546
commit
15e8003631
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user