From 086711e467bb81594a66dd279345c446cca29086 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 28 Mar 2018 19:01:10 -0700 Subject: [PATCH] Fixed checkout to checkin in loggable checkin trait --- app/Models/Loggable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Loggable.php b/app/Models/Loggable.php index 1a8cf3676a..31fbefbd76 100644 --- a/app/Models/Loggable.php +++ b/app/Models/Loggable.php @@ -141,7 +141,7 @@ trait Loggable ]; - $checkoutClass = null; + $checkinClass = null; if (method_exists($target, 'notify')) { $target->notify(new static::$checkinClass($params)); @@ -150,7 +150,7 @@ trait Loggable // Send to the admin, if settings dictate $recipient = new \App\Models\Recipients\AdminRecipient(); - if (($settings->admin_cc_email!='') && (static::$checkoutClass!='')) { + if (($settings->admin_cc_email!='') && (static::$checkinClass!='')) { $recipient->notify(new static::$checkinClass($params)); }