Fix warnings

This commit is contained in:
ldestailleur 2025-07-19 17:48:42 +02:00
parent 60547fda94
commit daae9593d6
3 changed files with 4 additions and 6 deletions

View file

@ -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');

View file

@ -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);

View file

@ -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
*/