aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared/modul
diff options
context:
space:
mode:
authorPeter Thienel <thienel@data-quest.de>2026-03-13 14:22:33 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-13 15:22:33 +0100
commit5239fe23a8b6b3e266dc09fd25d8c805f60d78a3 (patch)
tree8648e1e05775791bce7d165d6fff5703c4e1ab59 /app/views/shared/modul
parent7c500597a37db933c9188d67bf8a9d4dbd13e0b7 (diff)
Resolve "MVV: Modul-Kurzdarstellung im VVZ"
Closes #6252 Merge request studip/studip!4745
Diffstat (limited to 'app/views/shared/modul')
-rw-r--r--app/views/shared/modul/_modullvs.php2
-rw-r--r--app/views/shared/modul/description.php2
-rw-r--r--app/views/shared/modul/overview.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/modul/_modullvs.php b/app/views/shared/modul/_modullvs.php
index 97ac3e2..8a86879 100644
--- a/app/views/shared/modul/_modullvs.php
+++ b/app/views/shared/modul/_modullvs.php
@@ -27,7 +27,7 @@
<? $modulteil_deskriptor = $modulteil->getDeskriptor();
// Für die Kenntlichmachung der Modulteile in Listen die Nummer des
// Modulteils und den ausgewählten Namen verwenden.
- // Ist keine Nummer vorhanden, dann Durchnummerieren und Standard-
+ // Ist keine Nummer vorhanden, dann durchnummerieren und Standard-
// Bezeichnung verwenden.
if (trim($modulteil->nummer)) {
$num_bezeichnung = $GLOBALS['MVV_MODULTEIL']['NUM_BEZEICHNUNG']['values'][$modulteil->num_bezeichnung]['name'];
diff --git a/app/views/shared/modul/description.php b/app/views/shared/modul/description.php
index 05eddbf..d104822 100644
--- a/app/views/shared/modul/description.php
+++ b/app/views/shared/modul/description.php
@@ -15,7 +15,7 @@
href="<?= $controller->action_link('description/' . $modul->id . '/',
[
'display_language' => $language,
- 'abschnitt_id' => $abschnitt_modul->abschnitt_id,
+ 'abschnitt_id' => empty($abschnitt_modul) ? '' : $abschnitt_modul->abschnitt_id,
]) ?>">
<?= Assets::img(MVV::getContentLanguageImagePath($language), ['alt' => $lang['name'], 'size' => 24]) ?>
</a>
diff --git a/app/views/shared/modul/overview.php b/app/views/shared/modul/overview.php
index c6eadca..7e07ee8 100644
--- a/app/views/shared/modul/overview.php
+++ b/app/views/shared/modul/overview.php
@@ -127,7 +127,7 @@
<tr>
<? if ($type === 1): ?>
<td>
- <b> <?= htmlReady($modulteil_deskriptor->getReplacedValue('bezeichnung')) ?> </b>
+ <b> <?= htmlReady($modulteil->getDisplayName()) ?> </b>
<? if (mb_strlen($modulteil_deskriptor->getReplacedValue('kommentar')) > 0): ?>
<?= trim($modulteil_deskriptor->getReplacedValue('kommentar')) ? '<br>(' . formatReady($modulteil_deskriptor->getReplacedValue('kommentar')) . ')' : '' ?>
<? endif; ?>