fix(schools): insert correct authorship statement definition for exam-unrelated sheets

This commit is contained in:
Sarah Vaupel 2021-06-15 13:04:53 +02:00 committed by Gregor Kleen
parent 8fb49dd602
commit 227264743e

View File

@ -140,7 +140,7 @@ postSchoolEditR ssh = do
formResult sfResult $ \SchoolForm{..} -> do
runDB $ do
let insertAuthorshipStatement = maybe (pure Nothing) $ fmap Just . insert . AuthorshipStatementDefinition
mSheetAuthorshipStatementId <- insertAuthorshipStatement sfSheetExamAuthorshipStatementDefinition
mSheetAuthorshipStatementId <- insertAuthorshipStatement sfSheetAuthorshipStatementDefinition
mSheetExamAuthorshipStatementId <- insertAuthorshipStatement sfSheetExamAuthorshipStatementDefinition
update ssh
[ SchoolName =. sfName