A free open source IT asset/license management system
Set null option for $action_date
snipe239f21b0d756
diff --git a/app/Models/Loggable.php b/app/Models/Loggable.phpindex ba2be7ba38..412486a3ec 100644--- a/app/Models/Loggable.php+++ b/app/Models/Loggable.php@@ -24,7 +24,7 @@ trait Loggable* @since [v3.4]* @return \App\Models\Actionlog*/- public function logCheckout($note, $target, $action_date)+ public function logCheckout($note, $target, $action_date = null){$log = new Actionlog;$log = $this->determineLogItemType($log);@@ -50,6 +50,11 @@ trait Loggable$log->note = $note;$log->action_date = $action_date;++ if (!$log->action_date) {+ $log->action_date = date('Y-m-d H:i:s');+ }+$log->logaction('checkout');return $log;