mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Debug v20
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user