diff options
| author | Peter Thienel <thienel@data-quest.de> | 2025-01-30 09:49:59 +0000 |
|---|---|---|
| committer | Peter Thienel <thienel@data-quest.de> | 2025-01-30 09:49:59 +0000 |
| commit | 71c73dbc19f09bfced5d68a3087d93542c8f2d25 (patch) | |
| tree | 74396385316ab87af26a69ce149440b824201859 /app/controllers/studiengaenge/shared_version.php | |
| parent | 95f497150c42b6c6e34e93e869ea76aaf565e011 (diff) | |
Resolve "MVV: Bearbeitungskontext geht nach Bearbeitung einer Fachsemsterzuordnung verloren"
Closes #5203
Merge request studip/studip!3890
Diffstat (limited to 'app/controllers/studiengaenge/shared_version.php')
| -rw-r--r-- | app/controllers/studiengaenge/shared_version.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/studiengaenge/shared_version.php b/app/controllers/studiengaenge/shared_version.php index a6265b0..98d09a9 100644 --- a/app/controllers/studiengaenge/shared_version.php +++ b/app/controllers/studiengaenge/shared_version.php @@ -355,7 +355,6 @@ abstract class SharedVersionController extends MVVController public function abschnitte_action($version_id) { - $this->abschnitt_id = null; $this->abschnitte($version_id); if (Request::isXhr()) { $this->render_template('studiengaenge/versionen/abschnitte'); @@ -674,7 +673,10 @@ abstract class SharedVersionController extends MVVController public function details_abschnitt_action($abschnitt_id, $modul_id = null) { - $this->modul_id = $modul_id; + if ($modul_id) { + $this->modul = Modul::find($modul_id); + $this->modul_id = $this->modul->id; + } $this->abschnitt = StgteilAbschnitt::find($abschnitt_id); if (!$this->abschnitt) { PageLayout::postError(_('Unbekannter Abschnitt')); @@ -720,10 +722,8 @@ abstract class SharedVersionController extends MVVController if (Request::isXhr()) { $this->render_template('studiengaenge/versionen/details_abschnitt'); } else { - if ($modul_id) { - $this->modul = Modul::find($modul_id); + if ($this->modul_id) { $this->abschnitt_id = $this->abschnitt->id; - $this->modul_id = $this->modul->id; $this->stgteil_id = $this->version->studiengangteil->id; } $this->abschnitte_action($this->version_id); |
