From 99f50087b670f041fdcd4b4727e69510d9ef8e97 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 13 Nov 2007 13:56:03 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20alias=20de=20table=20qui=20posait=20prob?= =?UTF-8?q?l=E8me=20avec=20Mysql=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/paiement/cheque/remisecheque.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/paiement/cheque/remisecheque.class.php b/htdocs/compta/paiement/cheque/remisecheque.class.php index 28a96b1a8ce..b80fad5f014 100644 --- a/htdocs/compta/paiement/cheque/remisecheque.class.php +++ b/htdocs/compta/paiement/cheque/remisecheque.class.php @@ -183,9 +183,9 @@ class RemiseCheque extends CommonObject { foreach ($lines as $lineid) { - $sql = "UPDATE ".MAIN_DB_PREFIX."bank as b"; + $sql = "UPDATE ".MAIN_DB_PREFIX."bank"; $sql.= " SET fk_bordereau = ".$this->id; - $sql.= " WHERE b.rowid = ".$lineid; + $sql.= " WHERE rowid = ".$lineid; dolibarr_syslog("RemiseCheque::Create sql=".$sql, LOG_DEBUG); $resql = $this->db->query($sql);