diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
| commit | 7cc46886fa8ce53bc2eb0f5ef867ca491e2e1229 (patch) | |
| tree | 7be5fc86c6b5bc6a9904e2ead959499190a9f8aa /lib/modules | |
| parent | f00164f6f8b823872d0934830a466aeb2af7114b (diff) | |
TIC 4392, closes #4392
Closes #4392
Merge request studip/studip!3207
Diffstat (limited to 'lib/modules')
| -rw-r--r-- | lib/modules/CoreOverview.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/modules/CoreOverview.php b/lib/modules/CoreOverview.php index 94005da..8d4606d 100644 --- a/lib/modules/CoreOverview.php +++ b/lib/modules/CoreOverview.php @@ -89,9 +89,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')); } |
