gnucash maint: Bug 797240 - Multicolumn report not showing each report name
Christopher Lam
clam at code.gnucash.org
Thu May 16 23:24:14 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/e3fb593e (commit)
from https://github.com/Gnucash/gnucash/commit/539be984 (commit)
commit e3fb593edc9e86ac9ed60803694ddf682e5264fb
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Fri May 17 11:11:30 2019 +0800
Bug 797240 - Multicolumn report not showing each report name
reportname was not correctly applied as the chart-title
diff --git a/gnucash/report/standard-reports/balance-forecast.scm b/gnucash/report/standard-reports/balance-forecast.scm
index 581c0ee98..2462c751a 100644
--- a/gnucash/report/standard-reports/balance-forecast.scm
+++ b/gnucash/report/standard-reports/balance-forecast.scm
@@ -32,7 +32,7 @@
(gnc:module-load "gnucash/report/report-system" 0)
; Name definitions
-(define report-title (N_ "Balance Forecast"))
+(define reportname (N_ "Balance Forecast"))
(define optname-accounts (N_ "Accounts"))
(define opthelp-accounts (_ "Report on these accounts."))
@@ -133,6 +133,8 @@ date point, a projected minimum balance including scheduled transactions."))
(define (get-option pagename optname)
(gnc:option-value
(gnc:lookup-option (gnc:report-options report-obj) pagename optname)))
+ (define report-title
+ (get-option gnc:pagename-general gnc:optname-reportname))
(gnc:report-starting report-title)
@@ -282,7 +284,7 @@ date point, a projected minimum balance including scheduled transactions."))
(gnc:define-report
'version 1
- 'name report-title
+ 'name reportname
'report-guid "321d940d487d4ccbb4bd0467ffbadbf2"
'menu-path (list gnc:menuname-asset-liability)
'options-generator options-generator
Summary of changes:
gnucash/report/standard-reports/balance-forecast.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list