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

fix url generation, fixes #2156

Closes #2156

Merge request studip/studip!1392
parent 0be9a367
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -914,7 +914,7 @@ class Module_ModuleController extends MVVController ...@@ -914,7 +914,7 @@ class Module_ModuleController extends MVVController
)); ));
} }
} }
$this->redirect($this->detailsURL($this->modulteil->modul_id . '/' . $this->modulteil->id)); $this->redirect($this->detailsURL($this->modulteil->modul_id, $this->modulteil->id));
} }
} }
...@@ -936,7 +936,7 @@ class Module_ModuleController extends MVVController ...@@ -936,7 +936,7 @@ class Module_ModuleController extends MVVController
$lvg_modulteil->delete(); $lvg_modulteil->delete();
} }
} }
$this->redirect($this->detailsURL($modulteil->modul_id . '/' . $modulteil->id)); $this->redirect($this->detailsURL($modulteil->modul_id, $modulteil->id));
} }
public function lvgruppe_action($modulteil_id, $lvgruppe_id = null) public function lvgruppe_action($modulteil_id, $lvgruppe_id = null)
...@@ -960,7 +960,7 @@ class Module_ModuleController extends MVVController ...@@ -960,7 +960,7 @@ class Module_ModuleController extends MVVController
$this->lvgruppe->getDisplayName()); $this->lvgruppe->getDisplayName());
} }
$this->cancel_url = $this->indexURL(); $this->cancel_url = $this->indexURL();
$this->submit_url = $this->lvgruppeURL($this->modulteil->id . '/' . $this->lvgruppe->id); $this->submit_url = $this->lvgruppeURL($this->modulteil->id, $this->lvgruppe->id);
if (Request::submitted('store')) { if (Request::submitted('store')) {
CSRFProtection::verifyUnsafeRequest(); CSRFProtection::verifyUnsafeRequest();
$stored = false; $stored = false;
...@@ -990,7 +990,7 @@ class Module_ModuleController extends MVVController ...@@ -990,7 +990,7 @@ class Module_ModuleController extends MVVController
} else { } else {
PageLayout::postInfo(_('Es wurden keine Änderungen vorgenommen.')); PageLayout::postInfo(_('Es wurden keine Änderungen vorgenommen.'));
} }
$this->relocate($this->detailsURL($this->modulteil->modul_id . '/' . $this->modulteil->id)); $this->relocate($this->detailsURL($this->modulteil->modul_id, $this->modulteil->id));
return; return;
} }
} }
...@@ -1100,7 +1100,7 @@ class Module_ModuleController extends MVVController ...@@ -1100,7 +1100,7 @@ class Module_ModuleController extends MVVController
if (Request::isXhr()) { if (Request::isXhr()) {
$this->response->add_header( $this->response->add_header(
'X-Location', 'X-Location',
$this->diffURL($new_module->id . '/' . $old_module->id) $this->diffURL($new_module->id, $old_module->id)
); );
} }
$type_new = 1; $type_new = 1;
......
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