mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* fix call to pgend_trans_commit_edit()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7325 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
402a1187c1
commit
5b2369ecc8
@ -2,6 +2,7 @@
|
||||
* add more debugging to new PostgresBackend functions
|
||||
|
||||
* fix call to pgend_trans_rollback_edit()
|
||||
* fix call to pgend_trans_commit_edit()
|
||||
|
||||
2002-10-15 Derek Atkins <derek@ihtfp.com>
|
||||
* Christian Krause's dialog-utils patch for style
|
||||
|
@ -1648,8 +1648,10 @@ pgend_do_commit (Backend *bend, GNCIdTypeConst type, gpointer object)
|
||||
case MODE_POLL:
|
||||
case MODE_SINGLE_UPDATE:
|
||||
|
||||
if (!safe_strcmp (type, GNC_ID_TRANS))
|
||||
return pgend_trans_commit_edit (bend, object);
|
||||
if (!safe_strcmp (type, GNC_ID_TRANS)) {
|
||||
Transaction *txn = (Transaction*) object;
|
||||
return pgend_trans_commit_edit (bend, txn, txn->orig);
|
||||
}
|
||||
|
||||
if (!safe_strcmp (type, GNC_ID_PRICE))
|
||||
return pgend_price_commit_edit (bend, object);
|
||||
@ -1675,10 +1677,8 @@ pgend_do_rollback (Backend *bend, GNCIdTypeConst type, gpointer object)
|
||||
case MODE_EVENT:
|
||||
case MODE_POLL:
|
||||
|
||||
if (!safe_strcmp (type, GNC_ID_TRANS)) {
|
||||
Transaction *txn = (Transaction*) object;
|
||||
return pgend_trans_rollback_edit (bend, txn);
|
||||
}
|
||||
if (!safe_strcmp (type, GNC_ID_TRANS))
|
||||
return pgend_trans_rollback_edit (bend, object);
|
||||
|
||||
case MODE_SINGLE_UPDATE:
|
||||
case MODE_SINGLE_FILE:
|
||||
|
Loading…
Reference in New Issue
Block a user