Merge branch 'develop' into phpstan_config

This commit is contained in:
Laurent Destailleur
2025-12-22 17:44:42 +01:00
committed by GitHub
6 changed files with 17 additions and 10 deletions

View File

@@ -394,7 +394,7 @@ if ($action == "create" || $action == "start" || $action == 'close') {
dol_print_error(null, 'Value for key = '.$key.' not supported');
exit;
}
$sql .= " AND datep BETWEEN '".$db->idate($datestart)."' AND '".$db->idate($dateend)."'";
$sql .= " AND datep BETWEEN '".$db->idate((int) $datestart)."' AND '".$db->idate((int) $dateend)."'";
$resql = $db->query($sql);
if ($resql) {