fix: [auditlogs:index] Typo preventing showing the `changed` field

cli-modification-summary
Sami Mokaddem 2022-10-21 15:55:31 +02:00
parent cfae8cb914
commit d1d88391e1
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class AuditLogsController extends AppController
'quickFilters' => $this->quickFilterFields,
'afterFind' => function($data) {
$request_ip = is_resource($data['request_ip']) ? stream_get_contents($data['request_ip']) : $data['request_ip'];
$change = is_resource($data['change']) ? stream_get_contents($data['change']) : $data['change'];
$change = is_resource($data['changed']) ? stream_get_contents($data['changed']) : $data['changed'];
$data['request_ip'] = inet_ntop($request_ip);
$data['changed'] = $change;
return $data;