fix: [API] Messages fixed for event delegations

pull/5084/head
iglocska 2019-08-30 14:08:21 +02:00
parent af3ee16c92
commit 06b786f930
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class EventDelegationsController extends AppController
$this->Flash->success($message);
$this->redirect(array('controller' => 'events', 'action' => 'view', $result));
} else {
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'acceptDelegation', $id, $this->response->type());
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'acceptDelegation', $id, $this->response->type(), $message);
}
} else {
$message = 'Something went wrong and the event could not be transferred.';
@ -213,7 +213,7 @@ class EventDelegationsController extends AppController
$this->Flash->success($message);
$this->redirect(array('controller' => 'events', 'action' => 'index'));
} else {
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'deleteDelegation', $id, $this->response->type());
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'deleteDelegation', $id, $this->response->type(), $message);
}
} else {