Skip to content

A free open source IT asset/license management system

fix google and slack notifications

Godfrey Mcd2e7ee31de0
diff --git a/app/Notifications/CheckinAssetNotification.php b/app/Notifications/CheckinAssetNotification.php
index ff2b86d621..12f45884c9 100644
--- a/app/Notifications/CheckinAssetNotification.php
+++ b/app/Notifications/CheckinAssetNotification.php
@@ -93,7 +93,7 @@ class CheckinAssetNotification extends Notification
return (new SlackMessage)
- ->content(':arrow_down: :computer: '.trans('mail.Asset_Checkin_Notification', ['tag' => $item->asset_tag]))
+ ->content(':arrow_down: :computer: '.trans('mail.Asset_Checkin_Notification', ['tag' => '']))
->from($botname)
->to($channel)
->attachment(function ($attachment) use ($item, $note, $admin, $fields) {
@@ -144,7 +144,7 @@ class CheckinAssetNotification extends Notification
->card(
Card::create()
->header(
- '<strong>'.trans('mail.Asset_Checkin_Notification', ['tag' => $item->asset_tag]).'</strong>' ?: '',
+ '<strong>'.trans('mail.Asset_Checkin_Notification', ['tag' =>'']).'</strong>' ?: '',
htmlspecialchars_decode($item->display_name) ?: '',
)
->section(
diff --git a/app/Notifications/CheckoutAssetNotification.php b/app/Notifications/CheckoutAssetNotification.php
index 4a6f3fdfe9..213e0f77c6 100644
--- a/app/Notifications/CheckoutAssetNotification.php
+++ b/app/Notifications/CheckoutAssetNotification.php
@@ -110,7 +110,7 @@ class CheckoutAssetNotification extends Notification
}
return (new SlackMessage)
- ->content(':arrow_up: :computer: '.trans('mail.Asset_Checkout_Notification', ['tag' => $item->asset_tag]))
+ ->content(':arrow_up: :computer: '.trans('mail.Asset_Checkout_Notification', ['tag' => '']))
->from($botname)
->to($channel)
->attachment(function ($attachment) use ($item, $note, $admin, $fields) {
@@ -159,7 +159,7 @@ public function toGoogleChat()
->card(
Card::create()
->header(
- '<strong>'.trans('mail.Asset_Checkout_Notification', ['tag' => $item->asset_tag]).'</strong>' ?: '',
+ '<strong>'.trans('mail.Asset_Checkout_Notification', ['tag' => '']).'</strong>' ?: '',
htmlspecialchars_decode($item->display_name) ?: '',
)
->section(