diff --git a/hledger-web/Handler/Common.hs b/hledger-web/Handler/Common.hs index dbf2a1c9b..c6ae14ded 100644 --- a/hledger-web/Handler/Common.hs +++ b/hledger-web/Handler/Common.hs @@ -181,7 +181,7 @@ addform _ vd@VD{..} = [hamlet| acctnames = sort $ journalAccountNamesUsed j -- Construct data for select2. Text must be quoted in a json string. toSelectData as = preEscapedString $ encode $ JSArray $ map (\a -> JSObject $ toJSObject [("text", showJSON a)]) as - manyfiles = (length $ files j) > 1 + manyfiles = length (files j) > 1 postingfields :: ViewData -> Int -> HtmlUrl AppRoute postingfields _ n = [hamlet|