Skip to content

A free open source IT asset/license management system

removed translation fixed via method

Godfrey Mc65b32bcdb67
diff --git a/app/Notifications/CheckinAccessoryNotification.php b/app/Notifications/CheckinAccessoryNotification.php
index fbe525376e..f376c26a84 100644
--- a/app/Notifications/CheckinAccessoryNotification.php
+++ b/app/Notifications/CheckinAccessoryNotification.php
@@ -44,7 +44,7 @@ class CheckinAccessoryNotification extends Notification
$notifyBy[] = MicrosoftTeamsChannel::class;
}
- if (Setting::getSettings()->webhook_endpoint != '') {
+ if (Setting::getSettings()->webhook_selected == 'slack') {
$notifyBy[] = 'slack';
}
@@ -130,7 +130,7 @@ class CheckinAccessoryNotification extends Notification
->fact(trans('mail.checked_into'), $item->location->name ? $item->location->name : '')
->fact(trans('mail.Accessory_Checkin_Notification')." by ", $admin->present()->fullName())
->fact(trans('admin/consumables/general.remaining'), $item->numRemaining())
- ->fact(trans('mail.notes'), $note ?: 'No notes');
+ ->fact(trans('mail.notes'), $note ?: '');
}
/**
diff --git a/app/Notifications/CheckinAssetNotification.php b/app/Notifications/CheckinAssetNotification.php
index 171b41831a..8e9467c54f 100644
--- a/app/Notifications/CheckinAssetNotification.php
+++ b/app/Notifications/CheckinAssetNotification.php
@@ -51,7 +51,7 @@ class CheckinAssetNotification extends Notification
$notifyBy[] = MicrosoftTeamsChannel::class;
}
- if (Setting::getSettings()->webhook_endpoint != '') {
+ if (Setting::getSettings()->webhook_selected == 'slack') {
\Log::debug('use webhook');
$notifyBy[] = 'slack';
}
@@ -106,7 +106,7 @@ class CheckinAssetNotification extends Notification
->fact(trans('mail.checked_into'), $item->location->name ? $item->location->name : '')
->fact(trans('mail.Asset_Checkin_Notification')." by ", $admin->present()->fullName())
->fact(trans('admin/hardware/form.status'), $item->assetstatus->name)
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
/**
diff --git a/app/Notifications/CheckinLicenseSeatNotification.php b/app/Notifications/CheckinLicenseSeatNotification.php
index 2af301b7db..2222f937f3 100644
--- a/app/Notifications/CheckinLicenseSeatNotification.php
+++ b/app/Notifications/CheckinLicenseSeatNotification.php
@@ -48,7 +48,7 @@ class CheckinLicenseSeatNotification extends Notification
$notifyBy[] = MicrosoftTeamsChannel::class;
}
- if (Setting::getSettings()->webhook_endpoint != '') {
+ if (Setting::getSettings()->webhook_selected == 'slack') {
$notifyBy[] = 'slack';
}
@@ -108,10 +108,10 @@ class CheckinLicenseSeatNotification extends Notification
->title(trans('mail.License_Checkin_Notification'))
->addStartGroupToSection('activityText')
->fact(htmlspecialchars_decode($item->present()->name), '', 'header')
- ->fact(trans('mail.License_Checkin_Notification')." by ", $admin->present()->fullName() ?: 'ClI tool')
+ ->fact(trans('mail.License_Checkin_Notification')." by ", $admin->present()->fullName() ?: 'CLI tool')
->fact(trans('mail.checkedin_from'), $target->present()->fullName())
->fact(trans('admin/consumables/general.remaining'), $item->availCount()->count())
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
/**
diff --git a/app/Notifications/CheckoutAccessoryNotification.php b/app/Notifications/CheckoutAccessoryNotification.php
index d0cb7d13d0..62fce8e176 100644
--- a/app/Notifications/CheckoutAccessoryNotification.php
+++ b/app/Notifications/CheckoutAccessoryNotification.php
@@ -120,7 +120,7 @@ class CheckoutAccessoryNotification extends Notification
->fact(trans('mail.checkedout_from'), $item->location->name ? $item->location->name : '')
->fact(trans('mail.Accessory_Checkout_Notification') . " by ", $admin->present()->fullName())
->fact(trans('admin/consumables/general.remaining'), $item->numRemaining())
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
diff --git a/app/Notifications/CheckoutAssetNotification.php b/app/Notifications/CheckoutAssetNotification.php
index 652ec03f6a..7350a7736b 100644
--- a/app/Notifications/CheckoutAssetNotification.php
+++ b/app/Notifications/CheckoutAssetNotification.php
@@ -60,7 +60,7 @@ class CheckoutAssetNotification extends Notification
}
$notifyBy = [];
- if ((Setting::getSettings()) && (Setting::getSettings()->webhook_endpoint != '')) {
+ if ((Setting::getSettings()) && (Setting::getSettings()->webhook_selected == 'slack')) {
\Log::debug('use webhook');
$notifyBy[] = 'slack';
}
@@ -139,7 +139,7 @@ class CheckoutAssetNotification extends Notification
->fact(trans('mail.assigned_to'), $target->present()->name)
->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText')
->fact(trans('mail.Asset_Checkout_Notification') . " by ", $admin->present()->fullName())
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
diff --git a/app/Notifications/CheckoutConsumableNotification.php b/app/Notifications/CheckoutConsumableNotification.php
index c8cde7daf3..228c4c2e95 100644
--- a/app/Notifications/CheckoutConsumableNotification.php
+++ b/app/Notifications/CheckoutConsumableNotification.php
@@ -50,7 +50,7 @@ class CheckoutConsumableNotification extends Notification
$notifyBy[] = MicrosoftTeamsChannel::class;
}
- if (Setting::getSettings()->webhook_endpoint != '') {
+ if (Setting::getSettings()->webhook_selected == 'slack') {
$notifyBy[] = 'slack';
}
@@ -126,7 +126,7 @@ class CheckoutConsumableNotification extends Notification
->fact(trans('mail.Consumable_checkout_notification')." by ", $admin->present()->fullName())
->fact(trans('mail.assigned_to'), $target->present()->fullName())
->fact(trans('admin/consumables/general.remaining'), $item->numRemaining())
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
/**
diff --git a/app/Notifications/CheckoutLicenseSeatNotification.php b/app/Notifications/CheckoutLicenseSeatNotification.php
index 33db588350..d5c9871f3b 100644
--- a/app/Notifications/CheckoutLicenseSeatNotification.php
+++ b/app/Notifications/CheckoutLicenseSeatNotification.php
@@ -51,7 +51,7 @@ class CheckoutLicenseSeatNotification extends Notification
$notifyBy[] = MicrosoftTeamsChannel::class;
}
- if (Setting::getSettings()->webhook_endpoint != '') {
+ if (Setting::getSettings()->webhook_selected == 'slack') {
$notifyBy[] = 'slack';
}
@@ -127,7 +127,7 @@ class CheckoutLicenseSeatNotification extends Notification
->fact(trans('mail.License_Checkout_Notification')." by ", $admin->present()->fullName())
->fact(trans('mail.assigned_to'), $target->present()->fullName())
->fact(trans('admin/consumables/general.remaining'), $item->availCount()->count())
- ->fact(trans('mail.notes'), $note ?: trans('mail.no_notes'));
+ ->fact(trans('mail.notes'), $note ?: '');
}
/**
diff --git a/resources/lang/en-US/admin/hardware/form.php b/resources/lang/en-US/admin/hardware/form.php
index ae6b5646bd..ee3fa20fb0 100644
--- a/resources/lang/en-US/admin/hardware/form.php
+++ b/resources/lang/en-US/admin/hardware/form.php
@@ -35,7 +35,6 @@ return [
'months' => 'months',
'name' => 'Asset Name',
'notes' => 'Notes',
- 'no_notes' => 'No Notes',
'order' => 'Order Number',
'qr' => 'QR Code',
'requestable' => 'Users may request this asset',