summaryrefslogtreecommitdiff
path: root/Handler/UpdateItem.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-15 20:11:41 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-15 20:11:41 +0100
commit127d763a6a68d8fd242e093ba9f55bf769635842 (patch)
treea864c82c0476766cb61ae6c2d009581f4ef89d1e /Handler/UpdateItem.hs
parent7888d76bc45caed34cb3aa10824807d01057d746 (diff)
downloadbar-127d763a6a68d8fd242e093ba9f55bf769635842.tar
bar-127d763a6a68d8fd242e093ba9f55bf769635842.tar.gz
bar-127d763a6a68d8fd242e093ba9f55bf769635842.tar.bz2
bar-127d763a6a68d8fd242e093ba9f55bf769635842.tar.xz
bar-127d763a6a68d8fd242e093ba9f55bf769635842.zip
Make typing many items more efficient
Diffstat (limited to 'Handler/UpdateItem.hs')
-rw-r--r--Handler/UpdateItem.hs2
1 files changed, 1 insertions, 1 deletions
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 , ..