From 63b8016d656c7ce8d8c06fc711d8ab53f92e444b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 6 Dec 2020 11:13:19 +0100 Subject: [PATCH] tpl fixes, dont use printHtml for none-string types --- Theme/Backend/supplier-list.tpl.php | 8 ++++---- Theme/Backend/supplier-profile.tpl.php | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Theme/Backend/supplier-list.tpl.php b/Theme/Backend/supplier-list.tpl.php index 0dbef45..f261e6c 100644 --- a/Theme/Backend/supplier-list.tpl.php +++ b/Theme/Backend/supplier-list.tpl.php @@ -40,10 +40,10 @@ echo $this->getData('nav')->render(); ?> printHtml($value->number); ?> printHtml($value->profile->account->name1); ?> printHtml($value->profile->account->name2); ?> - printHtml($value->getMainAddress()->city); ?> - printHtml($value->getMainAddress()->postal); ?> - printHtml($value->getMainAddress()->address); ?> - printHtml($value->getMainAddress()->getCountry()); ?> + printHtml($value->mainAddress->city); ?> + printHtml($value->mainAddress->postal); ?> + printHtml($value->mainAddress->address); ?> + printHtml($value->mainAddress->getCountry()); ?> getHtml('Empty', '0', '0'); ?> diff --git a/Theme/Backend/supplier-profile.tpl.php b/Theme/Backend/supplier-profile.tpl.php index 6441873..f564477 100644 --- a/Theme/Backend/supplier-profile.tpl.php +++ b/Theme/Backend/supplier-profile.tpl.php @@ -67,20 +67,20 @@ echo $this->getData('nav')->render();

getHtml('Address'); ?>

- getMainAddress()->addition)) : ?> + mainAddress->addition)) : ?> - + - + - + - +