From 26d8cb6883a8104e5b3fd54cdc0c9be962ea9818 Mon Sep 17 00:00:00 2001 From: yois615 <38441801+yois615@users.noreply.github.com> Date: Mon, 25 Jul 2022 09:36:37 -0400 Subject: [PATCH] Relocate portalButton variable --- app/Utils/HtmlEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index 2a411578dc76..0a3c47f9e5a0 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -411,6 +411,7 @@ class HtmlEngine $data['$portal_button'] = ['value' => ''.ctrans('texts.view_client_portal').'', 'label' => ctrans('view_client_portal')]; $data['$contact.portal_button'] = &$data['$portal_button']; + $data['$portalButton'] = &$data['$portal_button']; $data['$contact.custom1'] = ['value' => isset($this->contact) ? $this->contact->custom_value1 : ' ', 'label' => $this->helpers->makeCustomField($this->company->custom_fields, 'contact1')]; $data['$contact.custom2'] = ['value' => isset($this->contact) ? $this->contact->custom_value2 : ' ', 'label' => $this->helpers->makeCustomField($this->company->custom_fields, 'contact2')]; @@ -540,7 +541,6 @@ class HtmlEngine /*Payment Aliases*/ $data['$paymentLink'] = &$data['$payment_link']; $data['$payment_url'] = &$data['$payment_link']; - $data['$portalButton'] = &$data['$portal_button']; $data['$dir'] = ['value' => in_array(optional($this->client->language())->locale, ['ar', 'he']) ? 'rtl' : 'ltr', 'label' => '']; $data['$dir_text_align'] = ['value' => in_array(optional($this->client->language())->locale, ['ar', 'he']) ? 'right' : 'left', 'label' => ''];