Skip to content

A free open source IT asset/license management system

One more try on #4001

snipe4b9bfc178d73
diff --git a/app/Notifications/CheckoutNotification.php b/app/Notifications/CheckoutNotification.php
index 071769f8b9..64fc92abce 100644
--- a/app/Notifications/CheckoutNotification.php
+++ b/app/Notifications/CheckoutNotification.php
@@ -94,7 +94,7 @@ class CheckoutNotification extends Notification
'item_tag' => $item->asset_tag,
'note' => $this->params['note'],
'item_serial' => $item->serial,
- 'require_acceptance' => $item->requireAcceptance(),
+ 'require_acceptance' => method_exists($item, 'requireAcceptance') ? $item->requireAcceptance() : '',
'log_id' => $this->params['log_id'],
];
return (new MailMessage)