diff options
Diffstat (limited to 'Handler')
-rw-r--r-- | Handler/InventoryListing.hs | 2 | ||||
-rw-r--r-- | Handler/ReferenceListing.hs | 2 | ||||
-rw-r--r-- | Handler/UpdateItem.hs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Handler/InventoryListing.hs b/Handler/InventoryListing.hs index cbf4eab..c2ec5d1 100644 --- a/Handler/InventoryListing.hs +++ b/Handler/InventoryListing.hs | |||
@@ -16,7 +16,7 @@ postInventoryListingR = do | |||
16 | FormFailure errors -> mapM_ (addMessage "formError" . toHtml) errors | 16 | FormFailure errors -> mapM_ (addMessage "formError" . toHtml) errors |
17 | _ -> return () | 17 | _ -> return () |
18 | 18 | ||
19 | (stockSort -> stock) <- runDB $ mapM withType =<< selectList [] [] | 19 | (stockSort -> stock) <- runDB $ withTypes =<< selectList [] [] |
20 | 20 | ||
21 | selectRep $ do | 21 | selectRep $ do |
22 | provideJson (stock :: [WithType (Entity Item)]) | 22 | provideJson (stock :: [WithType (Entity Item)]) |
diff --git a/Handler/ReferenceListing.hs b/Handler/ReferenceListing.hs index e433429..690f3f7 100644 --- a/Handler/ReferenceListing.hs +++ b/Handler/ReferenceListing.hs | |||
@@ -17,7 +17,7 @@ postReferenceListingR = do | |||
17 | FormFailure errors -> mapM_ (addMessage "formError" . toHtml) errors | 17 | FormFailure errors -> mapM_ (addMessage "formError" . toHtml) errors |
18 | _ -> return () | 18 | _ -> return () |
19 | 19 | ||
20 | (referenceSort -> reference) <- runDB $ mapM withType =<< selectList [] [Asc ReferenceKind] | 20 | (referenceSort -> reference) <- runDB $ withTypes =<< selectList [] [Asc ReferenceKind] |
21 | 21 | ||
22 | selectRep $ do | 22 | selectRep $ do |
23 | provideJson (reference :: [WithType (Entity Reference)]) | 23 | provideJson (reference :: [WithType (Entity Reference)]) |
diff --git a/Handler/UpdateItem.hs b/Handler/UpdateItem.hs index 503d8ca..b4c8713 100644 --- a/Handler/UpdateItem.hs +++ b/Handler/UpdateItem.hs | |||
@@ -28,7 +28,7 @@ postUpdateItemR fsUpdateId = do | |||
28 | provideRep $ case updateResult of | 28 | provideRep $ case updateResult of |
29 | FormSuccess _ -> redirect $ InventoryListingR :#: fsUpdateId :: Handler Html | 29 | FormSuccess _ -> redirect $ InventoryListingR :#: fsUpdateId :: Handler Html |
30 | _ -> do | 30 | _ -> do |
31 | (stockSort -> stock) <- runDB $ mapM withType =<< selectList [] [] | 31 | (stockSort -> stock) <- runDB $ withTypes =<< selectList [] [] |
32 | defaultLayout $ inventoryListing InventoryState | 32 | defaultLayout $ inventoryListing InventoryState |
33 | { invFormState = Just UpdateForm{..} | 33 | { invFormState = Just UpdateForm{..} |
34 | , .. | 34 | , .. |