fix: [CRUD] run afterfind even if no metatemplates set
parent
e39ece57c5
commit
5048c38ed6
|
@ -432,9 +432,9 @@ 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 (isset($params['afterFind'])) {
|
||||
$data = $params['afterFind']($data, $params);
|
||||
}
|
||||
if ($this->request->is('post')) {
|
||||
$patchEntityParams = [
|
||||
|
|
Loading…
Reference in New Issue