Debug v17

This commit is contained in:
Laurent Destailleur 2022-12-07 18:11:25 +01:00
parent f52a242159
commit e2cc7c1e58
2 changed files with 3 additions and 3 deletions

View File

@ -426,7 +426,7 @@ if ($this->statut == 0 && !empty($object_rights->creer) && $action != 'selectlin
print 'Error SQL: ' . $this->db->lasterror(); print 'Error SQL: ' . $this->db->lasterror();
} elseif ($obj = $this->db->fetch_object($resql_asset)) { } elseif ($obj = $this->db->fetch_object($resql_asset)) {
if (!empty($obj->found)) { if (!empty($obj->found)) {
print '<a class="reposition" href="' . DOL_URL_ROOT . '/asset/card.php?action=create&supplier_invoice_id=' . $object->id . '&token=' . newToken() . '">'; print '<a class="reposition" href="' . DOL_URL_ROOT . '/asset/card.php?action=create&token='.newToken().'&supplier_invoice_id='.$object->id.'">';
print img_edit_add() . '</a>'; print img_edit_add() . '</a>';
} }
} }
@ -438,7 +438,7 @@ if ($this->statut == 0 && !empty($object_rights->creer) && $action != 'selectlin
$coldisplay++; $coldisplay++;
if (($line->info_bits & 2) == 2 || !empty($disableedit)) { if (($line->info_bits & 2) == 2 || !empty($disableedit)) {
} else { ?> } else { ?>
<a class="editfielda reposition" href="<?php print $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id.'#line_'.$line->id; ?>"> <a class="editfielda reposition" href="<?php print $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id; ?>">
<?php print img_edit().'</a>'; <?php print img_edit().'</a>';
} }
print '</td>'; print '</td>';

View File

@ -41,7 +41,7 @@ $year = GETPOST('year') > 0 ?GETPOST('year') : $nowyear;
$startyear = $year - (empty($conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS) ? 2 : max(1, min(10, $conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS))); $startyear = $year - (empty($conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS) ? 2 : max(1, min(10, $conf->global->MAIN_STATS_GRAPHS_SHOW_N_YEARS)));
$endyear = $year; $endyear = $year;
$langs->loadLangs(array("reception", "other", "companies")); $langs->loadLangs(array("receptions", "other", "companies"));
// Security check // Security check
if ($user->socid) { if ($user->socid) {