From 24b4c3fbabe3982c2586281554f81cbfb4542c15 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jul 2022 15:34:54 +1000 Subject: [PATCH] Purchase Order Emails --- app/Http/Controllers/EmailController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/EmailController.php b/app/Http/Controllers/EmailController.php index 2d1c25cf0f..817cf485ed 100644 --- a/app/Http/Controllers/EmailController.php +++ b/app/Http/Controllers/EmailController.php @@ -128,7 +128,7 @@ class EmailController extends BaseController if($entity == 'purchaseOrder' || $template == 'purchase_order'){ PurchaseOrderEmail::dispatch($entity_obj, $entity_obj->company, $data); - return; + return $this->itemResponse($entity_obj); } $entity_obj->invitations->each(function ($invitation) use ($data, $entity_string, $entity_obj, $template) {