fix: [component:CRUD] Support for older PHP versions

pull/37/head
mokaddem 2021-01-18 16:21:43 +01:00
parent cfea15ff03
commit d974f784b6
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class CRUDComponent extends Component
$validationMessage = $this->prepareValidationError($data);
$message = __(
__('{0} could not be modified.'),
$this->ObjectAlias,
$this->ObjectAlias
);
if ($this->Controller->ParamHandler->isRest()) {
} else if ($this->Controller->ParamHandler->isAjax()) {