fix: [component:CRUD] Support for older PHP versions
parent
cfea15ff03
commit
d974f784b6
|
@ -225,7 +225,7 @@ class CRUDComponent extends Component
|
||||||
$validationMessage = $this->prepareValidationError($data);
|
$validationMessage = $this->prepareValidationError($data);
|
||||||
$message = __(
|
$message = __(
|
||||||
__('{0} could not be modified.'),
|
__('{0} could not be modified.'),
|
||||||
$this->ObjectAlias,
|
$this->ObjectAlias
|
||||||
);
|
);
|
||||||
if ($this->Controller->ParamHandler->isRest()) {
|
if ($this->Controller->ParamHandler->isRest()) {
|
||||||
} else if ($this->Controller->ParamHandler->isAjax()) {
|
} else if ($this->Controller->ParamHandler->isAjax()) {
|
||||||
|
|
Loading…
Reference in New Issue