fix: [analyst-data:CRUD] Make sure to return the data in the afterFind function

notes
Sami Mokaddem 2024-02-01 14:51:26 +01:00
parent 2c2c297b32
commit dc6b6cc3b3
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class AnalystDataController extends AppController
if (!$canEdit) {
throw new MethodNotAllowedException(__('You are not authorised to do that.'));
}
return $analystData;
}
];
$this->CRUD->edit($id, $params);
@ -99,6 +100,7 @@ class AnalystDataController extends AppController
if (!$canEdit) {
throw new MethodNotAllowedException(__('You are not authorised to do that.'));
}
return $analystData;
},
'afterDelete' => function($deletedAnalystData) use ($hard) {
if (empty($hard)) {