chg: [Component:CRUD] Typo
parent
3c177254d0
commit
aeac86cb52
|
@ -944,7 +944,7 @@ class CRUDComponent extends Component
|
||||||
if ($this->Controller->ParamHandler->isRest()) {
|
if ($this->Controller->ParamHandler->isRest()) {
|
||||||
$this->Controller->restResponsePayload = $this->RestResponse->viewData($data, 'json');
|
$this->Controller->restResponsePayload = $this->RestResponse->viewData($data, 'json');
|
||||||
} elseif ($this->Controller->ParamHandler->isAjax()) {
|
} elseif ($this->Controller->ParamHandler->isAjax()) {
|
||||||
if (!empty($additionalData['redirect'])) { // If a redirection occors, we need to make sure the flash message gets displayed
|
if (!empty($additionalData['redirect'])) { // If a redirection occurs, we need to make sure the flash message gets displayed
|
||||||
$this->Controller->Flash->error($message);
|
$this->Controller->Flash->error($message);
|
||||||
}
|
}
|
||||||
$this->Controller->ajaxResponsePayload = $this->RestResponse->ajaxFailResponse($this->ObjectAlias, $action, $data, $message, !is_null($errors) ? $errors : $data->getErrors());
|
$this->Controller->ajaxResponsePayload = $this->RestResponse->ajaxFailResponse($this->ObjectAlias, $action, $data, $message, !is_null($errors) ? $errors : $data->getErrors());
|
||||||
|
|
Loading…
Reference in New Issue