Fix: Update was broken

This commit is contained in:
Laurent Destailleur 2012-06-14 22:47:45 +02:00
parent 8d01ba75c9
commit a7d27fc711

View File

@ -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); $object->fetch($id);
$res = $object->update_num($_POST['num_paiement']); $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); $object->fetch($id);
$datepaye = dol_mktime(12, 0, 0, $_POST['datepmonth'], $_POST['datepday'], $_POST['datepyear']); $datepaye = dol_mktime(12, 0, 0, $_POST['datepmonth'], $_POST['datepday'], $_POST['datepyear']);