From 7908676063b5b3736decd69e66aef25286164691 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 14 Dec 2021 12:38:45 +1100 Subject: [PATCH] Fix error when new order created and notes is blank --- app/Http/Controllers/OrderController.php | 2 +- resources/views/email/admin/service/change.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index ace35b2..ec1135e 100644 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -117,7 +117,7 @@ class OrderController extends Controller } Mail::to('help@graytech.net.au') - ->queue((new OrderRequest($so,$request->input('options.notes')))->onQueue('email')); //@todo Get email from DB. + ->queue((new OrderRequest($so,$request->input('options.notes','')))->onQueue('email')); //@todo Get email from DB. return view('order_received',['o'=>$so]); } diff --git a/resources/views/email/admin/service/change.blade.php b/resources/views/email/admin/service/change.blade.php index 214ff21..03ed39d 100644 --- a/resources/views/email/admin/service/change.blade.php +++ b/resources/views/email/admin/service/change.blade.php @@ -1,4 +1,4 @@ -@component('mail::message',['site'=>$site,'heading'=>'Cancel Service Request']) +@component('mail::message',['site'=>$site,'heading'=>'Change Service Request']) Please change the following... @component('mail::table')