diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-07-11 14:08:41 +0200 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-07-11 14:08:41 +0200 |
| commit | 2648404bec7a72990789b3acdf57818a8cdc7df6 (patch) | |
| tree | 22b79273593d2549eb7740b448bf1c9bc81dc806 /lib | |
| parent | ac233209d548f310dfa3bde658ea0383f3c55e18 (diff) | |
Resolve "Alte Verlinkung beim Studienbereich"
Merge request studip/studip!4332
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/modules/CoreOverview.class.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/modules/CoreOverview.class.php b/lib/modules/CoreOverview.class.php index 093b016..797ac92 100644 --- a/lib/modules/CoreOverview.class.php +++ b/lib/modules/CoreOverview.class.php @@ -90,8 +90,20 @@ class CoreOverview extends CorePlugin implements StudipModule $navigation->setActiveImage(Icon::create('seminar', Icon::ROLE_INFO)); if ($object_type !== 'sem') { $navigation->addSubNavigation('info', new Navigation(_('Kurzinfo'), 'dispatch.php/institute/overview')); - $navigation->addSubNavigation('courses', new Navigation(_('Veranstaltungen'), 'show_bereich.php?level=s&id='.$course_id)); - $navigation->addSubNavigation('schedule', new Navigation(_('Veranstaltungs-Stundenplan'), 'dispatch.php/institute/schedule/index/' . $course_id)); + $range_tree_node = RangeTreeNode::findOneByStudip_object_id($course_id); + if ($range_tree_node) { + $navigation->addSubNavigation( + 'courses', + new Navigation(_('Veranstaltungen'), + 'dispatch.php/search/courses', + [ + 'node_id' => 'RangeTreeNode_' . $range_tree_node->id, + 'type' => 'rangetree' + ] + ) + ); + $navigation->addSubNavigation('schedule', new Navigation(_('Veranstaltungs-Stundenplan'), 'dispatch.php/institute/schedule/index/' . $course_id)); + } if ($GLOBALS['perm']->have_studip_perm('admin', $course_id)) { $navigation->addSubNavigation('admin', new Navigation(_('Administration der Einrichtung'), 'dispatch.php/institute/basicdata/index?new_inst=TRUE')); |
