diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-05-21 09:04:58 +0200 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-05-21 09:04:58 +0200 |
| commit | d0927a99ff390044b9f3515bedc038b658532f11 (patch) | |
| tree | 43e80175e274c91dbe8b9c77c77a327b062bad54 | |
| parent | 79bbb807db0ed16e89b2334b324c632b02287914 (diff) | |
use API of Exercise class, fixes #5619biest-5623
Closes #5619
Merge request studip/studip!4235
| -rw-r--r-- | app/views/vips/pool/list_exercises.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/vips/pool/list_exercises.php b/app/views/vips/pool/list_exercises.php index 83544f0..d65a7db 100644 --- a/app/views/vips/pool/list_exercises.php +++ b/app/views/vips/pool/list_exercises.php @@ -69,6 +69,7 @@ <tbody> <? foreach ($exercises as $exercise): ?> + <? $exercise_obj = Exercise::buildExisting($exercise) ?> <? $course_id = $exercise['range_type'] === 'course' ? $exercise['range_id'] : null ?> <tr> <td> @@ -82,9 +83,7 @@ </td> <td> - <? if (isset($exercise_types[$exercise['type']])): ?> - <?= htmlReady($exercise_types[$exercise['type']]['name']) ?> - <? endif ?> + <?= htmlReady($exercise_obj->getTypeName()) ?> </td> <td> |
