mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
3a3d33810b
commit
6f00959091
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user