From 9fc0c4667c09e487d74f2745c51508a05273f083 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 23 Oct 2015 11:43:03 -0700 Subject: [PATCH] Revert "Bug 756339 - Prices table not updated" This reverts commit 0baf078b6f2b33b607ccb1b022feee2ff7f0501a, and is step 1 in reverting out the single-price changes and moving them to master. --- src/backend/sql/gnc-price-sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/sql/gnc-price-sql.c b/src/backend/sql/gnc-price-sql.c index 83c5f3d1e6..92a5176e0e 100644 --- a/src/backend/sql/gnc-price-sql.c +++ b/src/backend/sql/gnc-price-sql.c @@ -203,7 +203,7 @@ write_price( GNCPrice* p, gpointer data ) g_return_val_if_fail( p != NULL, FALSE ); g_return_val_if_fail( data != NULL, FALSE ); - if ( s->is_ok && gnc_price_get_source(p) != PRICE_SOURCE_INVOICE) + if ( s->is_ok && gnc_price_get_source(p) == PRICE_SOURCE_INVOICE) { s->is_ok = save_price( s->be, QOF_INSTANCE(p) ); }