BUG:338306
FIXED-IN:4.8.2
Details
- Reviewers
tbaumgart - Group Reviewers
KMyMoney - Commits
- R261:dc939f28e46b: Fix 'Ledger search box doesn't support account hierarchy character ":"'
R261:887c69c41503: Fix 'Ledger search box doesn't support account hierarchy character ":"'
R261:7e618064a3f1: Fix 'Ledger search box doesn't support account hierarchy character ":"'
tested with branch 4.8
Diff Detail
- Repository
- R261 KMyMoney
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
kmymoney/widgets/transaction.cpp | ||
---|---|---|
711 | After rethinking about this implementation I guess entering a filter with ':' is only be applicable to the account hierarchy and not to any other split or transaction detail. for iterating through splits if (filter text contains(':')) { search for account hierarchy } else { search in all other transaction details } Can anyone confirm ? |
kmymoney/widgets/transaction.cpp | ||
---|---|---|
719 | What if "MyMoneyAccount current = acc;" is not the standard account from the beginning? |
kmymoney/widgets/transaction.cpp | ||
---|---|---|
711 | You should use MyMoneyFile::AccountSeparator instead of the colon character. It is used in all other locations. | |
719 | Isn't the question what would happen if acc is a standard account from the beginning more interesting here? I don't know if that could happen, but usually if called with acc being an account somewhere in the hierarchy going upward always ends with a standard account sometime. If not, we have a real problem. | |
720 | Use MyMoneyFile::AccountSeparator here also. |
kmymoney/widgets/transaction.cpp | ||
---|---|---|
711 | Not sure, but I do have things like "EREF: xxxxx" in my memo field which I could search for. |
In fact you broke it. See https://www.dict.cc/?s=separator It might be broken in other spots of the 4.8 branch as well. Then they should also be fixed.
The incorrect spelling has been imported 2009 from kmymoney2 sources, see https://phabricator.kde.org/R261:e5a82fdf7e350f7e00a9aca38456f09bad878ca7