r18157 - gnucash/trunk/src/libqof/qof - Remove call to backend from qof_commit_edit() and leave it to qof_commit_edit_part2().
Phil Longstaff
plongstaff at code.gnucash.org
Wed Jun 24 21:54:58 EDT 2009
Author: plongstaff
Date: 2009-06-24 21:54:58 -0400 (Wed, 24 Jun 2009)
New Revision: 18157
Trac: http://svn.gnucash.org/trac/changeset/18157
Modified:
gnucash/trunk/src/libqof/qof/qofinstance.c
Log:
Remove call to backend from qof_commit_edit() and leave it to qof_commit_edit_part2().
Fixes bug 586686: column 'enter_date' is set to 19700101000000 (postgres) when entering
transactions
Modified: gnucash/trunk/src/libqof/qof/qofinstance.c
===================================================================
--- gnucash/trunk/src/libqof/qof/qofinstance.c 2009-06-25 00:27:23 UTC (rev 18156)
+++ gnucash/trunk/src/libqof/qof/qofinstance.c 2009-06-25 01:54:58 UTC (rev 18157)
@@ -919,12 +919,14 @@
priv->editlevel--;
if (0 < priv->editlevel) return FALSE;
+#if 0
if ((0 == priv->editlevel) && priv->dirty) {
be = qof_book_get_backend(priv->book);
if (be && qof_backend_commit_exists(be)) {
qof_backend_run_commit(be, inst);
}
}
+#endif
if (0 > priv->editlevel) {
PERR ("unbalanced call - resetting (was %d)", priv->editlevel);
priv->editlevel = 0;
More information about the gnucash-changes
mailing list