diff options
| author | Peter Thienel <thienel@data-quest.de> | 2026-03-13 14:22:33 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-13 15:22:33 +0100 |
| commit | 5239fe23a8b6b3e266dc09fd25d8c805f60d78a3 (patch) | |
| tree | 8648e1e05775791bce7d165d6fff5703c4e1ab59 /lib/models/Modulteil.php | |
| parent | 7c500597a37db933c9188d67bf8a9d4dbd13e0b7 (diff) | |
Resolve "MVV: Modul-Kurzdarstellung im VVZ"
Closes #6252
Merge request studip/studip!4745
Diffstat (limited to 'lib/models/Modulteil.php')
| -rw-r--r-- | lib/models/Modulteil.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/models/Modulteil.php b/lib/models/Modulteil.php index 07ba2cc..6a0fa86 100644 --- a/lib/models/Modulteil.php +++ b/lib/models/Modulteil.php @@ -183,7 +183,7 @@ class Modulteil extends ModuleManagementModelTreeItem $replacements = [ $this->nummer, $GLOBALS['MVV_MODULTEIL']['NUM_BEZEICHNUNG']['values'][$this->num_bezeichnung]['name'] ?? '', - trim($deskriptor->bezeichnung), + trim($deskriptor->getReplacedValue('bezeichnung')), $GLOBALS['MVV_MODULTEIL']['LERNLEHRFORM']['values'][$this->lernlehrform]['name'] ?? '' ]; return self::formatDisplayName($template, $placeholders, $replacements); @@ -197,9 +197,9 @@ class Modulteil extends ModuleManagementModelTreeItem $name .= $this->nummer . ': '; } $name .= $GLOBALS['MVV_MODULTEIL']['LERNLEHRFORM']['values'][$this->lernlehrform]['name'] ?? ''; - if (strlen(trim($deskriptor->bezeichnung))) { - $name .= $name == '' ? $deskriptor->bezeichnung - : ' (' . $deskriptor->bezeichnung . ')'; + if (strlen(trim($deskriptor->getReplacedValue('bezeichnung')))) { + $name .= $name == '' ? $deskriptor->getReplacedValue('bezeichnung') + : ' (' . $deskriptor->getReplacedValue('bezeichnung') . ')'; } return trim($name); } |
