diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index 410b4b0cdcf4..635fc002e99d 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -414,6 +414,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')]; @@ -543,7 +544,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' => ''];