diff --git a/ChangeLog b/ChangeLog index d643b6a7b6..699237affc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,10 @@ Don't ask the user in the general case when making changes to entries. Generally the user should be allowed to make whatever changes they want without being pestered. + + * src/business/business-ledger/gncEntryLedgerControl.c: + Save the entry cells before adding an it to the invoice, + otherwise it wont get sorted properly. Fixes #108910. 2003-04-01 Christian Stimming diff --git a/src/business/business-ledger/gncEntryLedgerControl.c b/src/business/business-ledger/gncEntryLedgerControl.c index 5562c133ac..0b537dbf1b 100644 --- a/src/business/business-ledger/gncEntryLedgerControl.c +++ b/src/business/business-ledger/gncEntryLedgerControl.c @@ -60,6 +60,8 @@ gnc_entry_ledger_save (GncEntryLedger *ledger, gboolean do_commit) if (!gncEntryIsOpen (entry)) gncEntryBeginEdit (entry); + gnc_table_save_cells (ledger->table, entry); + if (entry == blank_entry) { Timespec ts; ts.tv_sec = time(NULL); @@ -86,8 +88,6 @@ gnc_entry_ledger_save (GncEntryLedger *ledger, gboolean do_commit) } } - gnc_table_save_cells (ledger->table, entry); - if (entry == blank_entry) { if (do_commit) { ledger->blank_entry_guid = *xaccGUIDNULL ();