;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
|
hideEmptyAccts <- (== Just "1") . lookup "hideemptyaccts" . reqCookies <$> getRequest
|
||||||
|
|
||||||
let ropts = reportopts_ (cliopts_ opts)
|
let ropts = reportopts_ (cliopts_ opts)
|
||||||
-- flip the default for items with zero amounts, show them by default
|
ropts' = ropts
|
||||||
ropts' = ropts { empty_ = not (empty_ ropts) }
|
{accountlistmode_ = ALTree -- force tree mode for sidebar
|
||||||
|
,empty_ = not (empty_ ropts) -- show zero items by default
|
||||||
|
}
|
||||||
accounts =
|
accounts =
|
||||||
balanceReportAsHtml (JournalR, RegisterR) here hideEmptyAccts j q qopts $
|
balanceReportAsHtml (JournalR, RegisterR) here hideEmptyAccts j q qopts $
|
||||||
balanceReport ropts' m j
|
balanceReport ropts' m j
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user