aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/contentmodules.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-08-19 06:26:53 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-08-19 06:26:53 +0000
commit9a3be241e775926318f3100a3f28caee98faffc7 (patch)
tree363b1c6d2140f0e9bca642e0406e5fadb63d26f7 /app/controllers/course/contentmodules.php
parent61d41bbff8bd610d662f175d5b77baab25e37b2f (diff)
correctly display original name, fixes #4419
Closes #4419 Merge request studip/studip!3277
Diffstat (limited to 'app/controllers/course/contentmodules.php')
-rw-r--r--app/controllers/course/contentmodules.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/course/contentmodules.php b/app/controllers/course/contentmodules.php
index 2a661cf..99f5fc3 100644
--- a/app/controllers/course/contentmodules.php
+++ b/app/controllers/course/contentmodules.php
@@ -214,6 +214,9 @@ class Course_ContentmodulesController extends AuthenticatedController
$this->module = PluginManager::getInstance()->getPluginById($module_id);
$this->metadata = $this->module->getMetadata();
+
+ $this->original_name = $this->metadata['diplayname'] ?? $this->module->getPluginName();
+
PageLayout::setTitle(_('Werkzeug umbenennen'));
$this->tool = ToolActivation::find([$context->id, $module_id]);