From a7bb8907292f615c197a2770989368acad59ee54 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 3 Jun 2025 05:29:49 +0100 Subject: [PATCH] Removed action date from array of things to log Signed-off-by: snipe --- app/Models/Loggable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Loggable.php b/app/Models/Loggable.php index 4cf5817668..b86dc1cf94 100644 --- a/app/Models/Loggable.php +++ b/app/Models/Loggable.php @@ -95,7 +95,7 @@ trait Loggable $changed = []; $array_to_flip = array_keys($fields_array); - $array_to_flip = array_merge($array_to_flip, ['action_date','name','status_id','location_id','expected_checkin']); + $array_to_flip = array_merge($array_to_flip, ['name','status_id','location_id','expected_checkin']); $originalValues = array_intersect_key($originalValues, array_flip($array_to_flip)); @@ -182,7 +182,7 @@ trait Loggable $log->note = $note; $log->action_date = $action_date; - if (! $log->action_date) { + if (!$action_date) { $log->action_date = date('Y-m-d H:i:s'); } @@ -193,7 +193,7 @@ trait Loggable $changed = []; $array_to_flip = array_keys($fields_array); - $array_to_flip = array_merge($array_to_flip, ['action_date','name','status_id','location_id','expected_checkin']); + $array_to_flip = array_merge($array_to_flip, ['name','status_id','location_id','expected_checkin']); $originalValues = array_intersect_key($originalValues, array_flip($array_to_flip));