<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>411030</bug_id>
          
          <creation_ts>2019-08-18 06:41:36 +0000</creation_ts>
          <short_desc>Attempt to move one split to new category moves all splits with same category</short_desc>
          <delta_ts>2019-08-18 06:46:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Thomas Baumgart">tbaumgart</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/kmymoney/ab92d1e117a1d88cabf184ca5319c4924399fc60</cf_commitlink>
          <cf_versionfixedin>5.0.6</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Backport"
          id="3262"
          type_id="23"
          status="+"
          setter="tbaumgart"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1875553</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2019-08-18 06:41:36 +0000</bug_when>
    <thetext>SUMMARY
In KMyMoney, in a transaction with multiple splits, where more than one 
split is assigned to the same category, attempts to change only one 
split to a new category changes all splits with the same category to the 
new category.

STEPS TO REPRODUCE
1. Go to &apos;Categories&apos;
2. Select original category and open ledger
3. Select transaction split to move to new category
4. Right click &amp; select &apos;Move transaction to...&apos;
5. Select desired new category from the &apos;Select Account&apos; list.


OBSERVED RESULT
All splits assigned to original category within the same transaction are moved to new category, even though only one split is selected.

EXPECTED RESULT
Only the selected split/s is/are moved to the new category.

ADDITIONAL INFORMATION
Reported by jillelaine01@gmail.com on the developer list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875554</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2019-08-18 06:46:00 +0000</bug_when>
    <thetext>Git commit ab92d1e117a1d88cabf184ca5319c4924399fc60 by Thomas Baumgart.
Committed on 18/08/2019 at 06:45.
Pushed by tbaumgart into branch &apos;5.0&apos;.

Do not move all splits of a transaction

In KMyMoney, in a transaction with multiple splits, where more than one
split is assigned to the same category, attempts to change only one
split to a new category changes all splits with the same category to the
new category.

This change only moves the selected transaction. Also, it only removes
those accounts from the list that are not referenced by the selected
splits which was detected during the course of the fix of the original
problem.
FIXED-IN: 5.0.6

M  +14   -17   kmymoney/views/kgloballedgerview.cpp

https://commits.kde.org/kmymoney/ab92d1e117a1d88cabf184ca5319c4924399fc60</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>