mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 20:02:27 +03:00
;web: ensure sidebar accounts are in tree mode, fixing a regression
This commit is contained in:
parent
2ba7bb0428
commit
7df9a40750
@ -119,8 +119,10 @@ instance Yesod App where
|
||||
hideEmptyAccts <- (== Just "1") . lookup "hideemptyaccts" . reqCookies <$> getRequest
|
||||
|
||||
let ropts = reportopts_ (cliopts_ opts)
|
||||
-- flip the default for items with zero amounts, show them by default
|
||||
ropts' = ropts { empty_ = not (empty_ ropts) }
|
||||
ropts' = ropts
|
||||
{accountlistmode_ = ALTree -- force tree mode for sidebar
|
||||
,empty_ = not (empty_ ropts) -- show zero items by default
|
||||
}
|
||||
accounts =
|
||||
balanceReportAsHtml (JournalR, RegisterR) here hideEmptyAccts j q qopts $
|
||||
balanceReport ropts' m j
|
||||
|
Loading…
Reference in New Issue
Block a user