From 7148eb584cc89aee8ef59f76fad5e405fd76e972 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 22 May 2010 06:38:26 +0000 Subject: [PATCH] Fix: id is lost --- htdocs/compta/bank/account.php | 2 +- htdocs/compta/paiement_charge.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index c3b983d939b..2e162a63193 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -3,7 +3,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004-2010 Laurent Destailleur * Copytight (C) 2004 Christophe Combelles - * Copytight (C) 2005-2009 Regis Houssin + * Copytight (C) 2005-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index 1407e42d4f0..aa46bd87ceb 100755 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -66,7 +66,7 @@ if ($_POST["action"] == 'add_paiement') if (! $error) { - $paiement_id = 0; + $paymentid = 0; // Read possible payments $amounts = array(); @@ -90,9 +90,9 @@ if ($_POST["action"] == 'add_paiement') $paiement->paiementtype = $_POST["paiementtype"]; $paiement->num_paiement = $_POST["num_paiement"]; $paiement->note = $_POST["note"]; - $paiement_id = $paiement->create($user); + $paymentid = $paiement->create($user); - if ($paiement_id > 0) + if ($paymentid > 0) { // On determine le montant total du paiement $total=0; @@ -136,7 +136,7 @@ if ($_POST["action"] == 'add_paiement') else { $db->rollback(); - $mesg = "Failed to create payment: paiement_id=$paiement_id ".$db->error(); + $mesg = "Failed to create payment: paiement_id=$paymentid ".$db->error(); } }