Skip to content

Commit b3fb82b

Browse files
committed
LTI: Update link target when updating tool - refs BT#17165
1 parent ae81f19 commit b3fb82b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/ims_lti/ImsLtiPlugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ public function updateCourseTool(CTool $courseTool, ImsLtiTool $ltiTool)
323323

324324
$courseTool->setName($ltiTool->getName());
325325

326+
if ('iframe' !== $ltiTool->getDocumentTarget()) {
327+
$courseTool->setTarget('_blank');
328+
} else {
329+
$courseTool->setTarget('_self');
330+
}
331+
326332
$em->persist($courseTool);
327333
$em->flush();
328334
}

0 commit comments

Comments
 (0)