GnuCash
Contact   Instructions
Bug 797051 - Price Database Add Overwrites Data Without Confirmation
Summary: Price Database Add Overwrites Data Without Confirmation
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: General (show other bugs)
Version: 3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: general
QA Contact: general
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 17:33 EST by Robert Chapin
Modified: 2019-05-13 04:44 EDT (History)
4 users (show)

See Also:


Attachments

Description Robert Chapin 2019-01-17 17:33:37 EST
When using the Add button in the Price Database, the Price Editor dialog is pre-populated with the Security and Date of any highlighted row.  If the user does not modify the Date, the existing price will be overwritten whether or not this was the intention.

User should be prompted any time the Add button is not effectively adding, but will instead overwrite existing data.
Comment 1 Robert Chapin 2019-04-04 16:29:35 EDT
v3.5 has the same bug, but adds the additional problem of NOT displaying the new value until the Price Database window is reopened.
Comment 2 Bob 2019-04-24 16:08:09 EDT
PR 495 created with a possible fix.
Comment 3 Bob 2019-04-26 11:54:07 EDT
I pushed a fix for this and will be in the next nightly windows build if you would like to confirm.
Comment 4 Robert Chapin 2019-04-28 16:48:07 EDT
In 3.5-126 if I try to click Add and then only change the default price, I get an AYS dialog.  If I click Edit and do the same, I do not get the AYS dialog.

So the program does warn me now.

Is this the desired fix?  Should the Add and Edit buttons normally do the exact same thing?
Comment 5 John Ralls 2019-04-28 16:59:52 EDT
Don't you expect that if you're editing an existing price that it would change that price rather than create a new one? Wouldn't the AYS dialog be pretty annoying in that case?

I notice that if a quote is selected when you click Add that the dialog comes up already filled in with that quote's information, just as if you'd clicked Edit while if you highlight the heading it comes up with today's date and a blank price. That strikes me as unintuitive and error prone: Add should always come up for today with a blank price.
Comment 6 Robert Chapin 2019-04-28 18:01:51 EDT
That's what I meant.  Exactly.
Comment 7 Bob 2019-05-03 06:54:22 EDT
Made another change and for new prices the date will be reset to today and the price will be 0 just like a heading row. Should be in the next nightly if you would like to check so this can be closed.
Comment 8 Robert Chapin 2019-05-11 09:02:19 EDT
3.5-170 works much better.


My only nit pick is the AYS cancel button dismisses the Add dialog.
Comment 9 Bob 2019-05-13 04:44:26 EDT
Changed this so that when you cancel the AYS it returns to the 'Price Editor'
Will be in release 3.6

Note You need to log in before you can comment on or make changes to this bug.