From cb67de5ba5e5700517d6c28b3608180f9cd1ccc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 15 Sep 2018 17:13:14 +0200 Subject: [PATCH] Fix a bug in multi month operation : description was updated but not saved with new value --- src/controller/KissCount.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controller/KissCount.cpp b/src/controller/KissCount.cpp index f4fc774..853691d 100644 --- a/src/controller/KissCount.cpp +++ b/src/controller/KissCount.cpp @@ -112,8 +112,6 @@ int KissCount::CalcAccountAmount(int id, int month, int year, bool* had_values) void KissCount::UpdateOperation(Operation& op, bool checkTransfert) { - if(!op.meta) - // Unlink if (checkTransfert) { @@ -316,6 +314,7 @@ int KissCount::CopyGeneratedOperation(int monthTo, int yearTo, Operation& opOrig opDest.description = opOrig.description.left(match.capturedStart(1)); opDest.description += QString::number(first) + QString("/") + QString::number(second); opDest.description += opOrig.description.right(opOrig.description.length()-match.capturedEnd(2)); + UpdateOperation(opDest, false); } } }