mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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
This commit is contained in:
parent
5c36c23cdb
commit
30ec5dfd75
|
|
@ -111,7 +111,7 @@ if (!empty($hookmanager->resPrint)) {
|
|||
<br>
|
||||
<p class="left">
|
||||
<?php
|
||||
$constFreeText = 'TAKEPOS_HEADER'.$_SESSION['takeposterminal'];
|
||||
$constFreeText = 'TAKEPOS_HEADER'.($_SESSION['takeposterminal'] ?? '0');
|
||||
if (!empty($conf->global->TAKEPOS_HEADER) || !empty($conf->global->{$constFreeText})) {
|
||||
$newfreetext = '';
|
||||
$substitutionarray = getCommonSubstitutionArray($langs);
|
||||
|
|
@ -316,7 +316,7 @@ if ($conf->global->TAKEPOS_PRINT_PAYMENT_METHOD) {
|
|||
<br>
|
||||
<br>
|
||||
<?php
|
||||
$constFreeText = 'TAKEPOS_FOOTER'.$_SESSION['takeposterminal'];
|
||||
$constFreeText = 'TAKEPOS_FOOTER'.($_SESSION['takeposterminal'] ?? '0');
|
||||
if (!empty($conf->global->TAKEPOS_FOOTER) || !empty($conf->global->{$constFreeText})) {
|
||||
$newfreetext = '';
|
||||
$substitutionarray = getCommonSubstitutionArray($langs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user