mirror of https://github.com/MISP/MISP
fix: [API] Messages fixed for event delegations
parent
af3ee16c92
commit
06b786f930
|
@ -179,7 +179,7 @@ class EventDelegationsController extends AppController
|
||||||
$this->Flash->success($message);
|
$this->Flash->success($message);
|
||||||
$this->redirect(array('controller' => 'events', 'action' => 'view', $result));
|
$this->redirect(array('controller' => 'events', 'action' => 'view', $result));
|
||||||
} else {
|
} else {
|
||||||
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'acceptDelegation', $id, $this->response->type());
|
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'acceptDelegation', $id, $this->response->type(), $message);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$message = 'Something went wrong and the event could not be transferred.';
|
$message = 'Something went wrong and the event could not be transferred.';
|
||||||
|
@ -213,7 +213,7 @@ class EventDelegationsController extends AppController
|
||||||
$this->Flash->success($message);
|
$this->Flash->success($message);
|
||||||
$this->redirect(array('controller' => 'events', 'action' => 'index'));
|
$this->redirect(array('controller' => 'events', 'action' => 'index'));
|
||||||
} else {
|
} else {
|
||||||
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'deleteDelegation', $id, $this->response->type());
|
return $this->RestResponse->saveSuccessResponse('EventDelegation', 'deleteDelegation', $id, $this->response->type(), $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue