Commits

Luke Plant  committed 470ff53

Reverted r302, added correct fix for crash with preview

  • Participants
  • Parent commits 379fc75

Comments (0)

Files changed (1)

File src/Blog/Forms.hs

 
 -- | An empty comment used for populating the default form.
 emptyComment = Cm.Comment {
-                 uid = 0 -- use 0 rather than undefined, to allow preview to work
+                 uid = undefined
                , post_id = undefined
                , timestamp = undefined
                , name = ""
       let errors = map snd $ filter fst $ tests
 
       return (Cm.Comment {
-                      uid = undefined
+                      uid = 0 -- for sake of preview
                     , post_id = P.uid blogpost
                     , timestamp = ts
                     , name = name