Debug v20

This commit is contained in:
Laurent Destailleur
2024-06-01 10:59:16 +02:00
parent 5edb71afb8
commit 172f7b910b

View File

@@ -166,10 +166,10 @@ foreach ($fulltree as $key => $val) {
$desc = dol_htmlcleanlastbr($val['description']);
$data[] = array(
'rowid'=>$val['rowid'],
'fk_menu'=>$val['fk_menu'],
'fk_parent'=>$val['fk_parent'],
'label'=>$val['label']
'rowid' => $val['rowid'],
'fk_menu' => empty($val['fk_menu']) ? 0 : $val['fk_menu'],
'fk_parent' => $val['fk_parent'],
'label' => $val['label']
);
}
@@ -184,7 +184,7 @@ if ($nbofentries > 0) {
print '<tr class="pair"><td colspan="3">';
print '<input type="hidden" name="action" value="SavePrinter1">';
foreach ($data as $row) {
if (strpos($conf->global->TAKEPOS_PRINTED_CATEGORIES_1, ';'.$row["rowid"].';') !== false) {
if (strpos(getDolGlobalString('TAKEPOS_PRINTED_CATEGORIES_1'), ';'.$row["rowid"].';') !== false) {
$checked = 'checked';
} else {
$checked = '';
@@ -218,7 +218,7 @@ if ($nbofentries > 0) {
print '<tr class="pair"><td colspan="3">';
print '<input type="hidden" name="action" value="SavePrinter2">';
foreach ($data as $row) {
if (strpos($conf->global->TAKEPOS_PRINTED_CATEGORIES_2, ';'.$row["rowid"].';') !== false) {
if (strpos(getDolGlobalString('TAKEPOS_PRINTED_CATEGORIES_2'), ';'.$row["rowid"].';') !== false) {
$checked = 'checked';
} else {
$checked = '';
@@ -252,7 +252,7 @@ if ($nbofentries > 0) {
print '<tr class="pair"><td colspan="3">';
print '<input type="hidden" name="action" value="SavePrinter3">';
foreach ($data as $row) {
if (strpos($conf->global->TAKEPOS_PRINTED_CATEGORIES_3, ';'.$row["rowid"].';') !== false) {
if (strpos(getDolGlobalString('TAKEPOS_PRINTED_CATEGORIES_3'), ';'.$row["rowid"].';') !== false) {
$checked = 'checked';
} else {
$checked = '';