From 2c2d1b50f4d38c335800bd9864550c53f5b250f8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 27 Nov 2020 08:24:25 +1100 Subject: [PATCH] Fix for invitation resolution with PhantomJS --- app/Utils/PhantomJS/Phantom.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Utils/PhantomJS/Phantom.php b/app/Utils/PhantomJS/Phantom.php index 7edb3c5e4d4c..c69511751323 100644 --- a/app/Utils/PhantomJS/Phantom.php +++ b/app/Utils/PhantomJS/Phantom.php @@ -114,9 +114,9 @@ class Phantom $state = [ 'template' => $template->elements([ - 'client' => $this->entity->client, - 'entity' => $this->entity, - 'pdf_variables' => (array) $this->entity->company->settings->pdf_variables, + 'client' => $entity_obj->client, + 'entity' => $entity_obj, + 'pdf_variables' => (array) $entity_obj->company->settings->pdf_variables, '$product' => $design->design->product, ]), 'variables' => $html->generateLabelsAndValues(),