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