From a7d27fc711e15e8371adc89b5023270a05972f1b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 14 Jun 2012 22:47:45 +0200 Subject: [PATCH] Fix: Update was broken --- htdocs/compta/paiement/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php index 679e042f1ac..d683713f870 100644 --- a/htdocs/compta/paiement/fiche.php +++ b/htdocs/compta/paiement/fiche.php @@ -126,7 +126,7 @@ if ($action == 'confirm_valide' && $confirm == 'yes' && $user->rights->facture-> } } -if ($action == 'setnum' && ! empty($_POST['num_paiement'])) +if ($action == 'setnum_paiement' && ! empty($_POST['num_paiement'])) { $object->fetch($id); $res = $object->update_num($_POST['num_paiement']); @@ -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']);