From 09d66df3ee4cbf472b790f243fa641681b3babde Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 May 2004 13:42:06 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Le=20lien=20sur=20le=20user=20de=20cr=E9?= =?UTF-8?q?ation=20lors=20d'un=20ajout=20dans=20llx=5Fbank=20ne=20se=20fai?= =?UTF-8?q?sait=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/account.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php index e9d2dd443c3..9dcd80bbf16 100644 --- a/htdocs/compta/bank/account.class.php +++ b/htdocs/compta/bank/account.class.php @@ -114,7 +114,7 @@ class Account * Ajoute une entree dans la table ".MAIN_DB_PREFIX."bank * */ - Function addline($date, $oper, $label, $amount, $num_chq="",$categorie='') + Function addline($date, $oper, $label, $amount, $num_chq='', $categorie='',$user) { if ($this->rowid) { @@ -145,8 +145,8 @@ class Account $datev = $date; - $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, author, num_chq,fk_account, fk_type)"; - $sql .= " VALUES (now(), '$date', '$datev', '$label', '" . ereg_replace(",",".",$amount) . "','$author','$num_chq', '$this->rowid', '$oper')"; + $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, fk_user_author, num_chq,fk_account, fk_type)"; + $sql .= " VALUES (now(), '$date', '$datev', '$label', '" . ereg_replace(",",".",$amount) . "', '$user->id' ,'$num_chq', '$this->rowid', '$oper')"; if ($this->db->query($sql))