From 1bea83ee5af9aaa5c5e0017ed59c9c62d50027f6 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 4 Sep 2020 15:44:37 -0700 Subject: [PATCH] Fixed missing setting call This is still broken further down the line in the event handler for license checkin, but this gets us closer --- app/Models/Loggable.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Models/Loggable.php b/app/Models/Loggable.php index bff1ac2e10..61b79d3a75 100644 --- a/app/Models/Loggable.php +++ b/app/Models/Loggable.php @@ -4,6 +4,7 @@ namespace App\Models; use App\Notifications\AuditNotification; use Illuminate\Support\Facades\Auth; +use App\Models\Setting; trait Loggable { @@ -90,6 +91,7 @@ trait Loggable */ public function logCheckin($target, $note, $action_date = null) { + $settings = Setting::getSettings(); $log = new Actionlog; $log->target_type = get_class($target); $log->target_id = $target->id;