From 378d4e7aca2bf521693ba34caf9f9b6e101b3a1e Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 26 Sep 2024 06:59:15 +0000 Subject: [PATCH] correctly display original name, fixes #4633 Closes #4633 Merge request studip/studip!3444 --- app/controllers/course/contentmodules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/course/contentmodules.php b/app/controllers/course/contentmodules.php index 99f5fc31aa7..ef2272a8893 100644 --- a/app/controllers/course/contentmodules.php +++ b/app/controllers/course/contentmodules.php @@ -215,7 +215,7 @@ 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(); + $this->original_name = $this->metadata['diplayname'] ?? $this->module->getMetadata()['displayname']; PageLayout::setTitle(_('Werkzeug umbenennen')); $this->tool = ToolActivation::find([$context->id, $module_id]); -- GitLab