[owner-report] fix code to set date to 'today'

code sets date-option to today. it fails to set the default-value. the
date will reset when user click 'reset options', and this commit
ensures the 'today' date remains the default date.
This commit is contained in:
Christopher Lam
2019-06-29 23:33:09 +08:00
parent 3a927ce2ac
commit 6f217165c4

View File

@@ -549,10 +549,9 @@
gnc:*report-options* gnc:pagename-general
optname-from-date optname-to-date "a")
;; Use a default report date of 'today'
(gnc:option-set-value (gnc:lookup-option gnc:*report-options*
gnc:pagename-general
optname-to-date)
(cons 'relative 'today))
(gnc:option-set-default-value
(gnc:lookup-option gnc:*report-options* gnc:pagename-general optname-to-date)
(cons 'relative 'today))
(gnc:register-inv-option
(gnc:make-simple-boolean-option