From 5524784421fc343275cd7b0974fd1cf4605d9f6c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Jun 2018 15:24:31 +0200 Subject: [PATCH] FIX prefilled date of order must have hours too --- htdocs/fourn/commande/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 6a073fb305d..af87ef4f6ee 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2460,7 +2460,8 @@ elseif (! empty($object->id)) print ''; //print ''; print '';
'.$langs->trans("ToOrder").'
'.$langs->trans("OrderDate").''; - $date_com = dol_mktime(0, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')); + $date_com = dol_mktime(GETPOST('rehour','int'), GETPOST('remin','int'), GETPOST('resec','int'), GETPOST('remonth','int'), GETPOST('reday','int'), GETPOST('reyear','int')); + if (empty($date_com)) $date_com=dol_now(); print $form->select_date($date_com,'',1,1,'',"commande",1,1,1); print '