From 3bba7f035e0a42d757058bb503fb06215251417d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Feb 2017 16:45:19 +0200 Subject: [PATCH] Fix for email queues --- resources/views/invoices/edit.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 51cee3a4a7ce..e77ce4b56add 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1305,6 +1305,9 @@ // if the client's language is different then we can't use the browser version of the PDF } else if (clientLanguageId && clientLanguageId != accountLanguageId) { submitAction('email'); + // if queues are enabled we need to use PhantomJS + } else if ({{ config('queue.default') != 'sync' ? 'true' : 'false' }}) { + submitAction('email'); } else { preparePdfData('email'); }