Fix check for maximum group size in correction creation

This commit is contained in:
Gregor Kleen 2018-12-05 12:03:38 +01:00
parent e66f8919a4
commit 1d51280ebf

View File

@ -681,7 +681,7 @@ postCorrectionsCreateR = do
sheetGroupDesc = Text.intercalate ", " $ map (review _PseudonymText . sheetPseudonymPseudonym) spGroup
in case sheetGrouping of
Arbitrary maxSize
| genericLength sps > maxSize
| genericLength spGroup > maxSize
-> addMessageI Error $ MsgSheetGroupTooLarge sheetGroupDesc
| otherwise
-> do