diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php index 679e042f1ac..83ddcc95c00 100644 --- a/htdocs/compta/paiement/fiche.php +++ b/htdocs/compta/paiement/fiche.php @@ -140,7 +140,7 @@ if ($action == 'setnum' && ! empty($_POST['num_paiement'])) } } -if ($action == 'setdate' && ! empty($_POST['datepday'])) +if ($action == 'setdatep' && ! empty($_POST['datepday'])) { $object->fetch($id); $datepaye = dol_mktime(12, 0, 0, $_POST['datepmonth'], $_POST['datepday'], $_POST['datepyear']);