diff --git a/hledger-web/Handler/Post.hs b/hledger-web/Handler/Post.hs index 12d44f5df..22d11a932 100644 --- a/hledger-web/Handler/Post.hs +++ b/hledger-web/Handler/Post.hs @@ -90,10 +90,9 @@ handleAdd = do let t' = txnTieKnot t -- XXX move into balanceTransaction liftIO $ do ensureJournalFileExists journalpath appendToJournalFileOrStdout journalpath $ showTransaction t' - -- setMessage $ toHtml $ (printf "Added transaction:\n%s" (show t') :: String) - setMessage [shamlet|Added transaction:
#{chomp $ show t'}
|] + setMessage [shamlet|Transaction added.|] - redirect (JournalR, [("add","1")]) + redirect (JournalR) -- , [("add","1")]) -- | Handle a post from the journal edit form. handleEdit :: Handler Html