Skip to content
Snippets Groups Projects
Commit 911183ce authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

fixes #2731

Closes #2731

Merge request studip/studip!1850
parent 9cea9813
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,9 @@ class Studiengaenge_VersionenController extends SharedVersionController ...@@ -23,7 +23,9 @@ class Studiengaenge_VersionenController extends SharedVersionController
'chooser_filter', 'chooser_filter',
Request::optionArray('chooser') Request::optionArray('chooser')
); );
URLHelper::bindLinkParam('chooser', $this->chooser_filter); if (count($this->chooser_filter) > 0) {
URLHelper::bindLinkParam('chooser', $this->chooser_filter);
}
} }
public function chooser_action() public function chooser_action()
...@@ -32,21 +34,21 @@ class Studiengaenge_VersionenController extends SharedVersionController ...@@ -32,21 +34,21 @@ class Studiengaenge_VersionenController extends SharedVersionController
switch ($step) { switch ($step) {
case 'index' : case 'index' :
$this->chooser_filter['fachbereich'] = $this->chooser_filter['fachbereich'] =
Request::option('id', !empty($this->chooser_filter['fachbereich'])); Request::option('id', $this->chooser_filter['fachbereich'] ?? null);
$this->chooser_filter['stgteile'] = null; $this->chooser_filter['stgteile'] = null;
$this->chooser_faecher_fachbereich(); $this->chooser_faecher_fachbereich();
$list = 'faecher_fachbereich'; $list = 'faecher_fachbereich';
break; break;
case 'faecher_fachbereich' : case 'faecher_fachbereich' :
$this->chooser_filter['fach'] = $this->chooser_filter['fach'] =
Request::option('id', !empty($this->chooser_filter['fach'])); Request::option('id', $this->chooser_filter['fach'] ?? null);
$this->chooser_filter['stgteile'] = null; $this->chooser_filter['stgteile'] = null;
$this->chooser_stgteile_fach(); $this->chooser_stgteile_fach();
$list = 'stgteile_fach'; $list = 'stgteile_fach';
break; break;
case 'stgteile_fach' : case 'stgteile_fach' :
$this->chooser_filter['stgteile'] = $this->chooser_filter['stgteile'] =
Request::option('id', $this->chooser_filter['stgteile']); Request::option('id', $this->chooser_filter['stgteile'] ?? null);
$this->redirect($this->action_url('index/' . $this->chooser_filter['stgteile'])); $this->redirect($this->action_url('index/' . $this->chooser_filter['stgteile']));
return; return;
default : default :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment