A free open source IT asset/license management system
Check context when sending to alert address
Marcus Moore60df2a17f8eb
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.phpindex 0f788b5151..ee6902bcc5 100644--- a/app/Listeners/CheckoutableListener.php+++ b/app/Listeners/CheckoutableListener.php@@ -428,6 +428,7 @@ class CheckoutableListenerprivate function shouldSendCheckoutEmailToUser(Model $checkoutable): bool{+ // @todo: update comment/*** Send an email if we didn't get here from a bulk checkout* and any of the following conditions are met:@@ -458,6 +459,10 @@ class CheckoutableListenerprivate function shouldSendEmailToAlertAddress($acceptance = null): bool{+ if (Context::get('action') === 'bulk_asset_checkout') {+ return false;+ }+$setting = Setting::getSettings();if (!$setting) {