diff --git a/src/Controller/AuditLogsController.php b/src/Controller/AuditLogsController.php index fd1be94..e3e4e0c 100644 --- a/src/Controller/AuditLogsController.php +++ b/src/Controller/AuditLogsController.php @@ -8,11 +8,10 @@ use Cake\ORM\TableRegistry; use \Cake\Database\Expression\QueryExpression; use Cake\Http\Exception\UnauthorizedException; use Cake\Core\Configure; -use PhpParser\Node\Stmt\Echo_; class AuditLogsController extends AppController { - public $filterFields = ['model_id', 'model', 'request_action', 'user_id', 'model_title']; + public $filterFields = ['model_id', 'model', 'request_action', 'user_id', 'model_title', 'AuditLogs.created']; public $quickFilterFields = ['model', 'request_action', 'model_title']; public $containFields = ['Users']; diff --git a/templates/AuditLogs/index.php b/templates/AuditLogs/index.php index e46892c..52526f6 100644 --- a/templates/AuditLogs/index.php +++ b/templates/AuditLogs/index.php @@ -28,6 +28,12 @@ echo $this->element('genericElements/IndexTable/index_table', [ 'sort' => 'request_ip', 'data_path' => 'request_ip', ], + [ + 'name' => 'created', + 'sort' => 'created', + 'data_path' => 'created', + 'element' => 'datetime' + ], [ 'name' => __('Username'), 'sort' => 'user.username',