From 8d41d4338583306f99c007e6a0dff31253060cc5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 31 Oct 2009 06:54:18 +0000 Subject: [PATCH] Fix: date problem with MAIN_AUTOFILL_DATE --- htdocs/commande/fiche.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 4ec8b03188e..2772f2ecea7 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -977,14 +977,13 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) print "".$langs->trans("DeliveryDate").""; if ($conf->global->DATE_LIVRAISON_WEEK_DELAY) { - $tmpdte = time() + ((7*$conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60); - $html->select_date($tmpdte,'liv_','','',1,"crea_commande"); + $datedelivery = time() + ((7*$conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60); } else { - $dateorder=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0; - $html->select_date($dateorder,'liv_','','',1,"crea_commande"); + $datedelivery=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0; } + $html->select_date($datedelivery,'liv_','','','',"crea_commande"); print ""; // Delivery address