fix: Fixed an issue where discarding a delegation request tried to redirect to the event view

- however, users lose access to the event once they discard the delegation request
- redirects to the index instead now
pull/2089/head
iglocska 2017-03-27 10:25:52 +02:00
parent 50c94e338b
commit ac6c74575e
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class EventDelegationsController extends AppController {
if ($this->request->is('post')) {
$this->EventDelegation->delete($delegation['EventDelegation']['id']);
$this->Session->setFlash('Delegation request deleted.');
$this->redirect(array('controller' => 'events', 'action' => 'view', $delegation['EventDelegation']['event_id']));
$this->redirect(array('controller' => 'events', 'action' => 'index'));
} else {
$this->set('delegationRequest', $delegation);
$this->render('ajax/delete_delegation');