fix(exams): better behaviour for optional statements wrt school default
This commit is contained in:
parent
0082135c56
commit
fe78377fae
@ -168,7 +168,7 @@ examForm (Entity _ Course{..}) template csrf = hoist liftHandler $ do
|
||||
)
|
||||
( case schoolSheetExamAuthorshipStatementMode of
|
||||
SchoolAuthorshipStatementModeNone -> Just False
|
||||
SchoolAuthorshipStatementModeOptional -> is _Just . efAuthorshipStatement <$> template
|
||||
SchoolAuthorshipStatementModeOptional -> (is _Just . efAuthorshipStatement <$> template) <|> (pure $ is _Just schoolSheetExamAuthorshipStatementDefinition)
|
||||
SchoolAuthorshipStatementModeRequired -> Just True
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user