Skip to content
Snippets Groups Projects
Commit 7c5accae authored by srosse's avatar srosse
Browse files

OO-3017: show to the user the number of available groups

parent bddf3ee9
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,8 @@ public class ENRunController extends BasicController implements GenericEventList
};
enrollVC.contextPut("multipleHint", translate("multiple.select.hint.outstanding", hintNumbers));
} else {
enrollVC.contextPut("multipleHint", translate("multiple.select.hint", String.valueOf(maxEnrollCount)));
int numOfAuthorizedEnrollments = Math.min(groupListModel.getRowCount(), maxEnrollCount);
enrollVC.contextPut("multipleHint", translate("multiple.select.hint", String.valueOf(numOfAuthorizedEnrollments)));
}
if (numOfParticipatingGroups > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment