From 0d563b327f20b3eeee02b36b576ad3f3f0950214 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Mon, 6 Nov 2023 12:22:17 +0000 Subject: fixes #3168 Closes #3168 Merge request studip/studip!2331 --- app/controllers/course/lti.php | 2 ++ app/views/course/lti/edit.php | 31 +++++++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/app/controllers/course/lti.php b/app/controllers/course/lti.php index 7ed8586..28bf218 100644 --- a/app/controllers/course/lti.php +++ b/app/controllers/course/lti.php @@ -146,6 +146,8 @@ class Course_LtiController extends StudipController */ public function edit_action($position = '') { + $this->lti_data = new LtiData(); + if ($position !== '') { $this->lti_data = LtiData::findByCourseAndPosition($this->course_id, $position); } diff --git a/app/views/course/lti/edit.php b/app/views/course/lti/edit.php index 4dc2b59..1812bf2 100644 --- a/app/views/course/lti/edit.php +++ b/app/views/course/lti/edit.php @@ -1,4 +1,11 @@ -
+ +
@@ -9,12 +16,12 @@ - + @@ -35,7 +42,7 @@ @@ -43,36 +50,36 @@ @@ -80,7 +87,7 @@
-- cgit v1.0