Skip to content
Snippets Groups Projects
Commit 422b4b19 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix redirect after editing configuration entries, fixes #1182

Closes #1182

Merge request studip/studip!702
parent 7cd75169
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,8 @@ class Admin_ConfigurationController extends AuthenticatedController ...@@ -46,10 +46,8 @@ class Admin_ConfigurationController extends AuthenticatedController
/** /**
* Maintenance view for the configuration parameters * Maintenance view for the configuration parameters
*
* @param mixed $section Open section
*/ */
public function configuration_action($open_section = null) public function configuration_action()
{ {
PageLayout::setTitle(_('Verwaltung von Systemkonfigurationen')); PageLayout::setTitle(_('Verwaltung von Systemkonfigurationen'));
...@@ -67,7 +65,7 @@ class Admin_ConfigurationController extends AuthenticatedController ...@@ -67,7 +65,7 @@ class Admin_ConfigurationController extends AuthenticatedController
// set variables for view // set variables for view
$this->only_section = $section; $this->only_section = $section;
$this->open_section = $open_section ?? $section; $this->open_section = Request::get('open_section', $section);
$this->needle = $needle; $this->needle = $needle;
$this->sections = ConfigurationModel::getConfig($section, $needle); $this->sections = ConfigurationModel::getConfig($section, $needle);
...@@ -103,7 +101,7 @@ class Admin_ConfigurationController extends AuthenticatedController ...@@ -103,7 +101,7 @@ class Admin_ConfigurationController extends AuthenticatedController
htmlReady($field) htmlReady($field)
)); ));
$this->relocate("admin/configuration/configuration/{$section}#field-{$field}"); $this->relocate($this->action_url("configuration#field-{$field}", ['open_section' => $section]));
return; return;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment