Bug 402120 - "Pay to" field gets auto filled from previous transaction even if cleared manually
Summary: "Pay to" field gets auto filled from previous transaction even if cleared man...
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.0.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
: 392684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-14 12:22 UTC by Branimir Amidzic
Modified: 2018-12-18 20:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Branimir Amidzic 2018-12-14 12:22:41 UTC
SUMMARY
When entering a new transaction the field "Pay to" gets the value from previous transaction even if it is manually deleted (empty).

STEPS TO REPRODUCE
1. Enter a new transaction with any Payee in "Pay to" field, but not empty
2. Enter a new transaction with "Pay to" field cleared
3. Press Enter to save the transaction

OBSERVED RESULT
The second transaction gets the same Payee even if it was set to no payee.

EXPECTED RESULT
The second transaction should have empty payee assigned.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Frameworks 5.52.0
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: Qt 5.11.1 (built against 5.11.1)


ADDITIONAL INFORMATION
I think the problem exists in all 5.* versions.
Comment 1 Jack 2018-12-14 17:27:03 UTC
I'm pretty sure this is a duplicate, but I'll have to check later.  However, the issue is that if there is nothing entered in the payee field when you either click or tab to another field, or save the transaction, KMM retains what was already in that field.  The temporary workaround is to enter a single space for the payee and then either go to another field or save.  The program will ask if you want to create a payee with the name " " and if you say "no" it will leave the field blank.
Comment 2 Branimir Amidzic 2018-12-15 07:59:28 UTC
(In reply to Jack from comment #1)
> I'm pretty sure this is a duplicate, but I'll have to check later.  However,
> the issue is that if there is nothing entered in the payee field when you
> either click or tab to another field, or save the transaction, KMM retains
> what was already in that field.  The temporary workaround is to enter a
> single space for the payee and then either go to another field or save.  The
> program will ask if you want to create a payee with the name " " and if you
> say "no" it will leave the field blank.

It may be reported earlier, because it's quite annoying, but I couldn't find any earlier bug reports.

Workaround would be not to type single space (because there may be many payees with a space in the name) but two spaces, and - when asked by the program to add a new payee - click No. This is only a workaround but it's quite tedious to think about this bug when entering each transaction.

The other workaround would be to force some payee, for example "Unknown" or similar.
Comment 3 Thomas Baumgart 2018-12-15 11:02:35 UTC
Git commit a9c6fffc9cccd8718f93239b98faa6628f2835f5 by Thomas Baumgart.
Committed on 15/12/2018 at 11:03.
Pushed by tbaumgart into branch '5.0'.

Unselect item in case text field is empty during focus out

In case the combo box contained a previously selected item, this was not
reset when the combo box text field was empty and the focus was removed
from the field. This caused the previously selected item still to be
reported as current item during e.g. the storage operation of a
transaction.
FIXED-IN: 5.0.3

M  +4    -0    kmymoney/dialogs/stdtransactioneditor.cpp
M  +1    -0    kmymoney/widgets/kmymoneymvccombo.cpp

https://commits.kde.org/kmymoney/a9c6fffc9cccd8718f93239b98faa6628f2835f5
Comment 4 Jack 2018-12-18 20:27:12 UTC
*** Bug 392684 has been marked as a duplicate of this bug. ***