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 /app/controllers/search/studiengaenge.php | |
| parent | 7c500597a37db933c9188d67bf8a9d4dbd13e0b7 (diff) | |
Resolve "MVV: Modul-Kurzdarstellung im VVZ"
Closes #6252
Merge request studip/studip!4745
Diffstat (limited to 'app/controllers/search/studiengaenge.php')
| -rw-r--r-- | app/controllers/search/studiengaenge.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/search/studiengaenge.php b/app/controllers/search/studiengaenge.php index 6882f6f..d2e07a7 100644 --- a/app/controllers/search/studiengaenge.php +++ b/app/controllers/search/studiengaenge.php @@ -268,12 +268,12 @@ class Search_StudiengaengeController extends MVVController if (!$abschnitt_modul->modul || !$abschnitt_modul->modul->hasPublicStatus()) { continue; } - - $start_sem = Semester::find($abschnitt_modul->modul->start); - $end_sem = Semester::find($abschnitt_modul->modul->end); + $abschnitt_modul->modul->setReplaceDfAbschnitt($abschnitt); + $start_sem_begin = $abschnitt_modul->modul->start_semester->beginn ?? 0; + $end_sem_end = $abschnitt_modul->modul->end_semester->ende ?? PHP_INT_MAX; if ( - ($start_sem && $start_sem->beginn > $this->active_sem->beginn) - || ($end_sem && $this->active_sem->ende > $end_sem->ende)) { + ($start_sem_begin > $this->active_sem->beginn) + || ($this->active_sem->ende > $end_sem_end)) { continue; } |
