Skip to content
Snippets Groups Projects
Commit 4888b05e authored by srosse's avatar srosse
Browse files

OO-1071: accept 0 as a possible value for the maximum number of participants...

OO-1071: accept 0 as a possible value for the maximum number of participants of a course with waiting list
parent 419c84e0
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ public class BusinessGroupFormController extends FormBasicController {
Integer minimumMembers = businessGroup.getMinParticipants();
Integer maximumMembers = businessGroup.getMaxParticipants();
businessGroupMinimumMembers.setValue(minimumMembers == null || minimumMembers.intValue() <= 0 ? "" : minimumMembers.toString());
businessGroupMaximumMembers.setValue(maximumMembers == null || maximumMembers.intValue() <= 0 ? "" : maximumMembers.toString());
businessGroupMaximumMembers.setValue(maximumMembers == null || maximumMembers.intValue() < 0 ? "" : maximumMembers.toString());
if (businessGroup.getWaitingListEnabled() != null) {
enableWaitingList.select("create.form.enableWaitinglist", businessGroup.getWaitingListEnabled());
}
......
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