fix(schools): insert correct authorship statement definition for exam-unrelated sheets
This commit is contained in:
parent
8fb49dd602
commit
227264743e
@ -140,7 +140,7 @@ postSchoolEditR ssh = do
|
|||||||
formResult sfResult $ \SchoolForm{..} -> do
|
formResult sfResult $ \SchoolForm{..} -> do
|
||||||
runDB $ do
|
runDB $ do
|
||||||
let insertAuthorshipStatement = maybe (pure Nothing) $ fmap Just . insert . AuthorshipStatementDefinition
|
let insertAuthorshipStatement = maybe (pure Nothing) $ fmap Just . insert . AuthorshipStatementDefinition
|
||||||
mSheetAuthorshipStatementId <- insertAuthorshipStatement sfSheetExamAuthorshipStatementDefinition
|
mSheetAuthorshipStatementId <- insertAuthorshipStatement sfSheetAuthorshipStatementDefinition
|
||||||
mSheetExamAuthorshipStatementId <- insertAuthorshipStatement sfSheetExamAuthorshipStatementDefinition
|
mSheetExamAuthorshipStatementId <- insertAuthorshipStatement sfSheetExamAuthorshipStatementDefinition
|
||||||
update ssh
|
update ssh
|
||||||
[ SchoolName =. sfName
|
[ SchoolName =. sfName
|
||||||
|
|||||||
Reference in New Issue
Block a user