From 2263dae8f4537cd94c21958e2e0bee3c66aa4f50 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 Oct 2020 04:07:55 -0700 Subject: [PATCH 1/2] Fixed HTML --- resources/views/hardware/view.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 406a75f38..aa08c9393 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -71,7 +71,7 @@ @if (!$asset->model)
-

NO MODEL ASSOCIATED

+

NO MODEL ASSOCIATED

This will break things in weird and horrible ways. Edit this asset now to assign it a model.

@@ -735,7 +735,7 @@ @endif @if (($asset->assignedTo) && ($asset->deleted_at=='')) -

{{ trans('admin/hardware/form.checkedout_to') }}

+

{{ trans('admin/hardware/form.checkedout_to') }}

@if($asset->checkedOutToUser()) {{ $asset->assignedTo->present()->fullName() }} From f5a0726f985e3ec324600dd4b7d85ef883c02df6 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 Oct 2020 04:46:26 -0700 Subject: [PATCH 2/2] Fixed #8597 - Added leading slash to notifications console commands --- app/Console/Commands/SendExpectedCheckinAlerts.php | 2 +- app/Console/Commands/SendExpirationAlerts.php | 4 ++-- app/Console/Commands/SendInventoryAlerts.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.php index d10791200..f56f6f88c 100644 --- a/app/Console/Commands/SendExpectedCheckinAlerts.php +++ b/app/Console/Commands/SendExpectedCheckinAlerts.php @@ -58,7 +58,7 @@ class SendExpectedCheckinAlerts extends Command $recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) { return new AlertRecipient($item); }); - Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); + \Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); } } } diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php index 858f33b34..f88c34566 100644 --- a/app/Console/Commands/SendExpirationAlerts.php +++ b/app/Console/Commands/SendExpirationAlerts.php @@ -55,14 +55,14 @@ class SendExpirationAlerts extends Command $assets = Asset::getExpiringWarrantee($threshold); if ($assets->count() > 0) { $this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold])); - Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); + \Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); } // Expiring licenses $licenses = License::getExpiringLicenses($threshold); if ($licenses->count() > 0) { $this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold])); - Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); + \Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); } } else { if ($settings->alert_email == '') { diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.php index 93b04978b..2c270ca7b 100644 --- a/app/Console/Commands/SendInventoryAlerts.php +++ b/app/Console/Commands/SendInventoryAlerts.php @@ -52,7 +52,7 @@ class SendInventoryAlerts extends Command return new AlertRecipient($item); }); - Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); + \Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); } } else { if ($settings->alert_email == '') {