From b57cf6be0337246612cc9c8f49050bdf7b3299b4 Mon Sep 17 00:00:00 2001 From: Moritz Strohm Date: Fri, 25 Apr 2025 14:52:18 +0200 Subject: use resource link instead of deployment id --- app/controllers/course/lti.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/course/lti.php b/app/controllers/course/lti.php index 9d84297..67cf65e 100644 --- a/app/controllers/course/lti.php +++ b/app/controllers/course/lti.php @@ -278,7 +278,6 @@ class Course_LtiController extends StudipController $ags_url_parameters = [ 'cid' => $this->course_id, 'tool_id' => $this->resource_link->deployment->tool_id, - 'deployment_id' => $this->resource_link->deployment_id, 'cancel_login' => '1' ]; @@ -312,8 +311,8 @@ class Course_LtiController extends StudipController 'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly', 'https://purl.imsglobal.org/spec/lti-ags/scope/score' ], - $this->url_for(sprintf('lti/ags/%d/line_items', $this->resource_link->deployment->id), $ags_url_parameters), - $this->url_for(sprintf('lti/ags/%d/line_item', $this->resource_link->deployment->id), $ags_url_parameters) + $this->url_for(sprintf('lti/ags/%d/line_items', $this->resource_link->id), $ags_url_parameters), + $this->url_for(sprintf('lti/ags/%d/line_item', $this->resource_link->id), $ags_url_parameters) ) ], $this->resource_link->deployment->getCustomLtiParameterArray(), -- cgit v1.0