<?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>497120</bug_id>
          
          <creation_ts>2024-12-06 09:44:09 +0000</creation_ts>
          <short_desc>5.1.80: Autofill transaction resets the Payer/Payee to the alphabetically first</short_desc>
          <delta_ts>2024-12-11 09:47:30 +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>ux-ui</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</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>1</everconfirmed>
          <reporter name="Paul Worrall">p.r.worrall</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/-/commit/5e522e5864004a83ff9672beca0cc183b97d0582</cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2379346</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2024-12-06 09:44:09 +0000</bug_when>
    <thetext>Using version 5.1.80-a2188af (kmymoney-master-3694-linux-gcc-x86_64.AppImage):

1. Start New Transaction (e.g. Ctrl+Ins)
2. Click in the Payer/Payee field and start typing the name of an existing Payee
3. Use the _Down-Arrow_ key and then Enter to select the payee name from the drop-down list.  N.B. Using the mouse to select the payee does not trigger this bug.
    (auto-fill dialog pops up)
4. Click to select a template and click OK, OR cancel the dialog

OBSERVED RESULT
Payer/Payee is changed to the alphabetically first payee.

EXPECTED RESULT
Payer/Payee field remains what was selected

SYSTEM INFO
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2379436</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2024-12-06 17:45:09 +0000</bug_when>
    <thetext>Git commit 5e522e5864004a83ff9672beca0cc183b97d0582 by Thomas Baumgart.
Committed on 06/12/2024 at 17:44.
Pushed by tbaumgart into branch &apos;master&apos;.

Don&apos;t change the payee during autofill

When a payee is selected using the keyboard navigation and pressing the
return key, opening the autofill dialog caused the payee to be changed
when the autofill operation was completed. This change postpones the
autofill operation until the event loop is reached after the payee has
been selected with the return key.
FIXED-IN: 5.2

M  +22   -9    kmymoney/views/newtransactioneditor.cpp

https://invent.kde.org/office/kmymoney/-/commit/5e522e5864004a83ff9672beca0cc183b97d0582</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>