From 131edd26d3c74aac86bbf41289e4ea3364874815 Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Sun, 27 Jul 2008 15:35:41 +0000 Subject: [PATCH] Fix parent/child relationships in tax tables when loading from db. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gda-dev2@17422 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-core/sql/gnc-tax-table-sql.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/business/business-core/sql/gnc-tax-table-sql.c b/src/business/business-core/sql/gnc-tax-table-sql.c index d3a34c0b07..a4783ad83a 100644 --- a/src/business/business-core/sql/gnc-tax-table-sql.c +++ b/src/business/business-core/sql/gnc-tax-table-sql.c @@ -70,8 +70,8 @@ static GncSqlColumnTableEntry tt_col_table[] = { "refcount", CT_INT64, 0, COL_NNUL, NULL, GNC_TT_REFCOUNT }, { "invisible", CT_BOOLEAN, 0, COL_NNUL, NULL, NULL, (QofAccessFunc)gncTaxTableGetInvisible, (QofSetterFunc)set_invisible }, - { "child", CT_TAXTABLEREF, 0, 0, NULL, NULL, - get_child, (QofSetterFunc)gncTaxTableSetChild }, +/* { "child", CT_TAXTABLEREF, 0, 0, NULL, NULL, + get_child, (QofSetterFunc)gncTaxTableSetChild }, */ { "parent", CT_TAXTABLEREF, 0, 0, NULL, NULL, (QofAccessFunc)gncTaxTableGetParent, set_parent }, { NULL } @@ -153,6 +153,7 @@ set_parent( gpointer data, gpointer value ) if( value != NULL ) { parent = GNC_TAXTABLE(value); gncTaxTableSetParent( tt, parent ); + gncTaxTableSetChild( parent, tt ); } }