chore: don't redirect, but show a nullResult for Left
This commit is contained in:
parent
fabf56c164
commit
ce0f48b82a
@ -152,7 +152,13 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
||||
(eaofMapping, eaofAssignment, _ignoredOccurrences) <- case autoOccurrenceResult of
|
||||
(Left e) -> do
|
||||
addMessageI Error e
|
||||
redirect $ CExamR tid ssh csh examn EUsersR
|
||||
pure ( ExamOccurrenceMapping {
|
||||
examOccurrenceMappingRule = examOccurrenceRule,
|
||||
examOccurrenceMappingMapping = Map.empty
|
||||
}
|
||||
, Map.map (view _2) participants'
|
||||
, eaocIgnoreRooms eaofConfig
|
||||
)
|
||||
(Right r) -> pure r
|
||||
-- TODO use returned ignoredOccurrences
|
||||
return $ Just ExamAutoOccurrenceAcceptForm{..}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user