From daae9593d6f41a7cc2e0a4bf4825830e7ec4ed49 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 19 Jul 2025 17:48:42 +0200 Subject: [PATCH] Fix warnings --- htdocs/compta/facture/invoicetemplate_list.php | 1 + htdocs/core/tpl/objectline_edit.tpl.php | 2 +- htdocs/core/tpl/objectline_view.tpl.php | 7 ++----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/facture/invoicetemplate_list.php b/htdocs/compta/facture/invoicetemplate_list.php index 4572394a0e3..7c1823b3361 100644 --- a/htdocs/compta/facture/invoicetemplate_list.php +++ b/htdocs/compta/facture/invoicetemplate_list.php @@ -64,6 +64,7 @@ $toselect = GETPOST('toselect', 'array'); $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'invoicetemplatelist'; // To manage different context of search $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') $mode = GETPOST('mode', 'aZ'); // The output mode ('list', 'kanban', 'hierarchy', 'calendar', ...) +$groupby = GETPOST('groupby', 'aZ09'); $socid = GETPOSTINT('socid'); diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php index 41cbd02ed46..65eb3c3aca3 100644 --- a/htdocs/core/tpl/objectline_edit.tpl.php +++ b/htdocs/core/tpl/objectline_edit.tpl.php @@ -413,7 +413,7 @@ $coldisplay++; } } } - $hourmin = getDolGlobalString('MAIN_USE_HOURMIN_IN_DATE_RANGE'); + $hourmin = getDolGlobalInt('MAIN_USE_HOURMIN_IN_DATE_RANGE'); print $form->selectDate($line->date_start, 'date_start', $hourmin, $hourmin, $line->date_start ? 0 : 1, "updateline", 1, 0); print ' '.$langs->trans('to').' '; print $form->selectDate($line->date_end, 'date_end', $hourmin, $hourmin, $line->date_end ? 0 : 1, "updateline", 1, 0); diff --git a/htdocs/core/tpl/objectline_view.tpl.php b/htdocs/core/tpl/objectline_view.tpl.php index 5694a0291aa..b0929b26969 100644 --- a/htdocs/core/tpl/objectline_view.tpl.php +++ b/htdocs/core/tpl/objectline_view.tpl.php @@ -26,10 +26,7 @@ * * Need to have the following variables defined: * $object (invoice, order, ...) - * $conf - * $langs * $dateSelector - * $forceall (0 by default, 1 for supplier invoices/orders) * $element (used to test $user->rights->$element->creer) * $permtoedit (used to replace test $user->rights->$element->creer) * $senderissupplier (0 by default, 1 for supplier invoices/orders) @@ -54,9 +51,9 @@ * * @var string $action * @var int $i - * @var 0|1 $forceall + * @var int $forceall * @var int $num - * @var 0|1 $senderissupplier + * @var int $senderissupplier * @var string $text * @var string $description */