From 887f7fac32ee328b99dff918f7db85584451a903 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 27 Jul 2019 15:15:55 -0700 Subject: [PATCH] Bug 746937 - Template transaction splits are loaded in reverse order... and then not sorted before saving. Actually not sorted after loading because the template accounts weren't being committed. --- libgnucash/backend/xml/io-gncxml-v2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgnucash/backend/xml/io-gncxml-v2.cpp b/libgnucash/backend/xml/io-gncxml-v2.cpp index 8f42abe843..085119e359 100644 --- a/libgnucash/backend/xml/io-gncxml-v2.cpp +++ b/libgnucash/backend/xml/io-gncxml-v2.cpp @@ -853,6 +853,9 @@ qof_session_load_from_xml_file_v2_full ( gnc_account_foreach_descendant (root, (AccountCb) xaccAccountCommitEdit, NULL); + gnc_account_foreach_descendant (gnc_book_get_template_root (book), + (AccountCb) xaccAccountCommitEdit, + NULL); /* start logging again */ xaccLogEnable ();