fix: [CRUD] run afterfind even if no metatemplates set
parent
e39ece57c5
commit
5048c38ed6
|
@ -432,10 +432,10 @@ class CRUDComponent extends Component
|
||||||
if ($metaFieldsEnabled) {
|
if ($metaFieldsEnabled) {
|
||||||
$metaTemplates = $this->getMetaTemplates();
|
$metaTemplates = $this->getMetaTemplates();
|
||||||
$data = $this->attachMetaTemplatesIfNeeded($data, $metaTemplates->toArray());
|
$data = $this->attachMetaTemplatesIfNeeded($data, $metaTemplates->toArray());
|
||||||
|
}
|
||||||
if (isset($params['afterFind'])) {
|
if (isset($params['afterFind'])) {
|
||||||
$data = $params['afterFind']($data, $params);
|
$data = $params['afterFind']($data, $params);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($this->request->is('post')) {
|
if ($this->request->is('post')) {
|
||||||
$patchEntityParams = [
|
$patchEntityParams = [
|
||||||
'associated' => [],
|
'associated' => [],
|
||||||
|
|
Loading…
Reference in New Issue