From 30ec5dfd75849bed3a2bf044a266a94bbdf91933 Mon Sep 17 00:00:00 2001 From: Adnan RIHAN Date: Sat, 19 Aug 2023 17:27:06 +0200 Subject: [PATCH] FIX TakePOS receipt preview in admin #25648 Receipt preview in admin shows header and footer repeating themselves because in preview, $constFreeText equals TAKEPOS_HEADER (as there is no $_SESSION['takeposterminal'] defined). Back compatibility for #25648 --- htdocs/takepos/receipt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index fafee970bae..e8844fa764a 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -111,7 +111,7 @@ if (!empty($hookmanager->resPrint)) {

global->TAKEPOS_HEADER) || !empty($conf->global->{$constFreeText})) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs); @@ -316,7 +316,7 @@ if ($conf->global->TAKEPOS_PRINT_PAYMENT_METHOD) {

global->TAKEPOS_FOOTER) || !empty($conf->global->{$constFreeText})) { $newfreetext = ''; $substitutionarray = getCommonSubstitutionArray($langs);