mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fixed checkout to checkin in loggable checkin trait
This commit is contained in:
parent
bf2d6dd0fa
commit
086711e467
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue