r17200 - gnucash/branches/aqbanking3/src/import-export/aqbanking - Fix two newly introduced bugs concerning transaction templates.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Jun 8 06:08:23 EDT 2008


Author: andi5
Date: 2008-06-08 06:08:22 -0400 (Sun, 08 Jun 2008)
New Revision: 17200
Trac: http://svn.gnucash.org/trac/changeset/17200

Modified:
   gnucash/branches/aqbanking3/src/import-export/aqbanking/dialog-ab-trans.c
Log:
Fix two newly introduced bugs concerning transaction templates.

* Replace recipient name by recipient name instead of template name
* Correctly initialize empty GList by NULL


Modified: gnucash/branches/aqbanking3/src/import-export/aqbanking/dialog-ab-trans.c
===================================================================
--- gnucash/branches/aqbanking3/src/import-export/aqbanking/dialog-ab-trans.c	2008-06-08 09:32:46 UTC (rev 17199)
+++ gnucash/branches/aqbanking3/src/import-export/aqbanking/dialog-ab-trans.c	2008-06-08 10:08:22 UTC (rev 17200)
@@ -580,7 +580,7 @@
 GList *
 gnc_ab_trans_dialog_get_templ(const GncABTransDialog *td, gboolean *changed)
 {
-    GList *list;
+    GList *list = NULL;
 
     g_return_val_if_fail(td, NULL);
 
@@ -693,7 +693,7 @@
     old_amount = gnc_amount_edit_get_amount(GNC_AMOUNT_EDIT(td->amount_edit));
 
     /* Get new values */
-    new_name = gnc_ab_trans_templ_get_name(templ);
+    new_name = gnc_ab_trans_templ_get_recp_name(templ);
     new_account = gnc_ab_trans_templ_get_recp_account(templ);
     new_bankcode = gnc_ab_trans_templ_get_recp_bankcode(templ);
     new_purpose = gnc_ab_trans_templ_get_purpose(templ);



More information about the gnucash-changes mailing list