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
This commit is contained in:
Joshua Sled 2007-12-15 20:55:37 +00:00
parent 3a3d33810b
commit 6f00959091

View File

@ -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),