GNOME Bugzilla – Bug 742461
SQL backend doesn't update customer info
Last modified: 2018-06-29 23:37:29 UTC
I have following problem; When I try to update phone number or something else in customers data the changes is not saved. It is gone next time I log into Gnucash. I am useing Latest version (2.6.5) of Gnucash, Windows7 and Mysql as backend. The same problem is present also when I use Kubuntu with mysql. I have to use Mysql Workbench or someting else to change data in the database. Does anybody have a solution on this?
Not able to replicate. Since this is copied from the mailing list no reporter will see the status change, so I'll ask there.
Actually, yes I can: I missed a step. There's some weird state issue going on: If the customer is created and then edited in the same GnuCash session then address edits are committed to the DB, but when editing in a later session the address edits are not committed, though other changes (like customer name) are.
Found it, fixed it. load_address wasn't passing through the parent to the constructor, and mark_address wasn't dirtying the parent. Since addresses don't have their own table they rely on the parent object to write them out to the DB, but of course it won't if it doesn't think it's dirty.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=742461. Please update any external references or bookmarks.