fix(course-register): swapped warning message
This commit is contained in:
parent
2936eefbd1
commit
32c060575c
@ -142,9 +142,9 @@ courseRegisterForm (Entity cid Course{..}) = liftHandler $ do
|
||||
-> aFormToWForm $ fileUploadForm False (fslI . mkFs) courseApplicationsFiles
|
||||
|
||||
when (is _Just $ registration >>= courseParticipantAllocated . entityVal) $
|
||||
wformMessage =<< messageIconI Warning IconExamRegisterFalse MsgCourseDeregistrationNoShow
|
||||
wformMessage =<< messageIconI Warning IconExamRegisterFalse MsgCourseDeregistrationAllocationLog
|
||||
when (is _Just (registration >>= courseParticipantAllocated . entityVal) && courseDeregisterNoShow) $
|
||||
wformMessage =<< messageIconI Warning IconEnrolFalse MsgCourseDeregistrationAllocationLog
|
||||
wformMessage =<< messageIconI Warning IconEnrolFalse MsgCourseDeregistrationNoShow
|
||||
|
||||
return $ CourseRegisterForm
|
||||
<$ secretRes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user