From f3813dd5a7a73f88c9e3549abc9594c24abf3a03 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 20 Jan 2022 13:43:29 +0100 Subject: [PATCH] fix: [auditlog] Clean up of leftover copy paste --- src/Model/Table/AuditLogsTable.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Model/Table/AuditLogsTable.php b/src/Model/Table/AuditLogsTable.php index 7987af6..e6f6f95 100644 --- a/src/Model/Table/AuditLogsTable.php +++ b/src/Model/Table/AuditLogsTable.php @@ -43,14 +43,8 @@ class AuditLogsTable extends AppTable public function initialize(array $config): void { parent::initialize($config); - $this->addBehavior('UUID'); - $this->addBehavior('Timestamp', [ - 'Model.beoreSave' => [ - 'created_at' => 'new' - ] - ]); + $this->addBehavior('Timestamp'); $this->belongsTo('Users'); - $this->setDisplayField('info'); $this->compressionEnabled = Configure::read('Cerebrate.log_new_audit_compress') && function_exists('brotli_compress'); }