Fix: Can't create contract

This commit is contained in:
Laurent Destailleur 2012-04-07 00:22:44 +02:00
parent 37bff53fb5
commit fd26400339

View File

@ -148,7 +148,7 @@ if ($_POST["remonth"] && $_POST["reday"] && $_POST["reyear"])
$datecontrat = dol_mktime($_POST["rehour"], $_POST["remin"], 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]); $datecontrat = dol_mktime($_POST["rehour"], $_POST["remin"], 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
} }
else if ($action == 'add' && $user->rights->contrat->creer) if ($action == 'add' && $user->rights->contrat->creer)
{ {
$object->socid = $socid; $object->socid = $socid;
$object->date_contrat = $datecontrat; $object->date_contrat = $datecontrat;