Bug 358550

Summary: Payee cannot be matched by name in list when it contains semicolon
Product: [Applications] kmymoney Reporter: Josef Kufner <jk>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: major CC: ralf.habacker
Priority: NOR    
Version: 4.6.6   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Sentry Crash Report:
Attachments: Bug in action

Description Josef Kufner 2016-01-25 18:32:10 UTC
See attached screenshots.

When adding payee name to list, it inteprets semicolons as separators and adds multiple names instead one with semicolon.

Reproducible: Always

Steps to Reproduce:
1. Set transaction matching to 'Match on name listed below'
2. Enter something with semicolon, i.e. 'A;B'
3. Click Add button

Actual Results:  
4. One payee name is added
5. Click Apply button
6. Names are split in two, i.e. 'A' and 'B' instead of 'A;B'

Expected Results:  
4. One payee name is added
5. Click Apply button
6. One payee name is still there

I guess it is because payee names are separated with semicolon in database or something like that.
Comment 1 Josef Kufner 2016-01-25 18:43:16 UTC
Created attachment 96839 [details]
Bug in action
Comment 2 wojnilowicz 2017-05-14 04:42:08 UTC
Git commit c5dcfd6cca71fad85947a69cb1b957042609ec5d by Łukasz Wojniłowicz.
Committed on 14/05/2017 at 04:40.
Pushed by wojnilowicz into branch 'master'.

Separate payees with newline instead of semicolon

Differential Revision: https://phabricator.kde.org/D5687

M  +10   -4    kmymoney/mymoney/mymoneypayee.cpp

https://commits.kde.org/kmymoney/c5dcfd6cca71fad85947a69cb1b957042609ec5d