From bd0558a9b0fb799a73819d19a700b0ed369cbe95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Fri, 5 Nov 2010 20:32:39 +0100 Subject: [PATCH] Maybe fix a bug, maybe not --- src/model/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/Database.cpp b/src/model/Database.cpp index 4f1d843..757faf8 100644 --- a/src/model/Database.cpp +++ b/src/model/Database.cpp @@ -466,6 +466,7 @@ void Database::LinkOrUnlinkOperation(Operation& op) { req = wxT("UPDATE operation SET transfert='' where id='") + op.id + wxT("'") ; EXECUTE_SQL_UPDATE(req, ); + op.transfert = wxT(""); return; } } @@ -488,7 +489,6 @@ void Database::LinkOrUnlinkOperation(Operation& op) req += wxT(" AND amount='") + DoubleToString(-op.amount) + wxT("'"); req += wxT(" AND meta='0'"); req += wxT(" AND account !='") + op.account + wxT("'"); - req += wxT(" AND id !='") + op.id + wxT("'"); req += wxT(" AND (transfert='' OR transfert IS NULL)"); EXECUTE_SQL_QUERY(req, set, );