From 6f009590911d96169806fd9b9e26e545cf5355a1 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Sat, 15 Dec 2007 20:55:37 +0000 Subject: [PATCH] Bug#500427: copy any notes associated with SXes upon creation. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16652 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/app-utils/gnc-sx-instance-model.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app-utils/gnc-sx-instance-model.c b/src/app-utils/gnc-sx-instance-model.c index 75439e7ced..d327d66a85 100644 --- a/src/app-utils/gnc-sx-instance-model.c +++ b/src/app-utils/gnc-sx-instance-model.c @@ -1015,6 +1015,12 @@ create_each_transaction_helper(Transaction *template_txn, void *user_data) /* clear any copied KVP data */ qof_instance_set_slots(QOF_INSTANCE(new_txn), kvp_frame_new()); + /* Bug#500427: copy the notes, if any */ + if (xaccTransGetNotes(template_txn) != NULL) + { + xaccTransSetNotes(new_txn, g_strdup(xaccTransGetNotes(template_txn))); + } + xaccTransSetDate(new_txn, g_date_get_day(&creation_data->instance->date), g_date_get_month(&creation_data->instance->date),