Bug 507851 - Text search (Ctrl+F) doesn't search through transaction's memo field if written in a single split item
Summary: Text search (Ctrl+F) doesn't search through transaction's memo field if writt...
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: ux-ui (other bugs)
Version First Reported In: 5.2.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-04 13:43 UTC by surcouf
Modified: 2025-08-06 18:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2.2
Sentry Crash Report:


Attachments
.kmy file with test data for text search in transaction single split memo (5.53 KB, application/gzip)
2025-08-04 13:43 UTC, surcouf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description surcouf 2025-08-04 13:43:40 UTC
Created attachment 183779 [details]
.kmy file with test data for text search in transaction single split memo

SUMMARY
The Text search doesn't search through transaction's memo field if this memo is written in a single split item.

STEPS TO REPRODUCE
1. open the attached file in KMyMoney
2. go into ledger of the current account
3. see the 136 €-transaction with memo "many things for printer and office" (transaction date is 04th August 2025) and see that it is split into two items
4. see the 27 € split having category = "Leisure" and the memo text = "new printer cartridge"
5. press Ctrl+F. This makes the text search bar appear.
6. in the text search bar, write "cartridge"


OBSERVED RESULT
7. the search shows 0 results

EXPECTED RESULT
7. the search must show one result, the split transaction mentioned in 3.

SOFTWARE/OS VERSIONS
KMyMoney version > 5.2.0-2cbd7a8
OS > Debian GNU/Linux 12 (bookworm) 12 (x86_64)

ADDITIONAL INFORMATION
I am aware that :
1) searching through "find transaction" (Ctrl+Shift+F) does find the cartridge split transaction.
However the Ctrl+F search is more ergonomic to me since it does not open any additional window as the Ctrl+Shift+F does.
2) searching through Memo field from non-split transaction works well. But this is uncomplete since sometimes the relevant text are written in the split parts of a transaction in their memo fields.
Comment 1 Thomas Baumgart 2025-08-06 17:01:53 UTC
Git commit ea53edf06583ba37e18c1d5471c90468123edee2 by Thomas Baumgart.
Committed on 06/08/2025 at 17:01.
Pushed by tbaumgart into branch 'master'.

When searching text in the ledger view also consider split memos
FIXED-IN: 5.2.2

M  +5    -1    kmymoney/models/ledgerfilter.cpp

https://invent.kde.org/office/kmymoney/-/commit/ea53edf06583ba37e18c1d5471c90468123edee2
Comment 2 Thomas Baumgart 2025-08-06 18:32:46 UTC
Git commit 249e680a4f4c6013bdcb9cc577af80d902c22e76 by Thomas Baumgart.
Committed on 06/08/2025 at 18:12.
Pushed by tbaumgart into branch '5.2'.

When searching text in the ledger view also consider split memos
FIXED-IN: 5.2.2
(cherry picked from commit ea53edf06583ba37e18c1d5471c90468123edee2)

M  +5    -1    kmymoney/models/ledgerfilter.cpp

https://invent.kde.org/office/kmymoney/-/commit/249e680a4f4c6013bdcb9cc577af80d902c22e76