From af0cfac11437f3537e9981401a130057810e639e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Feb 2008 00:42:28 +0000 Subject: [PATCH] New: New way to edit contracts and line of contracts --- htdocs/contrat/fiche.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 6ae39f755fd..e3cf61f2e01 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -998,9 +998,11 @@ else //print ''.$langs->trans("Status").''; // Definie date debut et fin par defaut + $dateactstart = $objp->date_debut; if ($_POST["remonth"]) $dateactstart = dolibarr_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]); elseif (! $dateactstart) $dateactstart = time(); + $dateactend = $objp->date_fin; if ($_POST["endmonth"]) $dateactend = dolibarr_mktime(12, 0 , 0, $_POST["endmonth"], $_POST["endday"], $_POST["endyear"]); elseif (! $dateactend) {