gnucash maint: Bug 798039 - Using 'Consolidate Transactions' option on Consolidate Transaction Report returns Error

Christopher Lam clam at code.gnucash.org
Fri Dec 11 18:44:26 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/6927c122 (commit)
	from  https://github.com/Gnucash/gnucash/commit/3e76b844 (commit)



commit 6927c1229238179e28bb07e6527dc2e5ea221d97
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Dec 12 07:42:26 2020 +0800

    Bug 798039 - Using 'Consolidate Transactions' option on Consolidate Transaction Report returns Error
    
    because (gnc:module-load "gnucash/html" 0) was meant to load the html
    module and was incorrectly assumed to be present in (gnucash report)
    module.

diff --git a/bindings/guile/gnc-module.scm b/bindings/guile/gnc-module.scm
index 129974360..883a094dd 100644
--- a/bindings/guile/gnc-module.scm
+++ b/bindings/guile/gnc-module.scm
@@ -64,7 +64,7 @@ this module in your code or not.")
 been deprecated. Use '(use-modules (" mod-name-str "))' instead.")
        (module-use! (current-module) (resolve-interface scm-mod-name)))
 
-      ((or "gnucash/gnome-utils" "gnucash/html" "gnucash/report/report-system")
+      ((or "gnucash/gnome-utils" "gnucash/report/report-system")
        (when (string=? gnc-mod-name "gnucash/report/report-system")
          (set! mod-name-str "gnucash report"))
        (set! scm-mod-name '(gnucash report))
@@ -76,6 +76,12 @@ or not you use functions from this module in your code or not.")
        (use-modules (gnucash engine) (gnucash app-utils))
        (module-use! (current-module) (resolve-interface scm-mod-name)))
 
+      ("gnucash/html"
+       (deprecate "* WARNING * '(gnc:module-load \"gnucash/html\" 0)' has \
+been deprecated. Use '(use-modules (gnucash html))' instead.")
+       (use-modules (gnucash html))
+       (module-use! (current-module) (resolve-interface scm-mod-name)))
+
       (_ (deprecate "* WARNING * '(gnc:module-load \"" gnc-mod-name "\" 0)' \
 has been deprecated. Use '(use-modules (" mod-name-str "))' instead. \
 Additional guile modules may have to be loaded depending on your specific code.")



Summary of changes:
 bindings/guile/gnc-module.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list