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

OO-1071: a group with max number of participant set on 0 is always full

parent b5228592
No related branches found
No related tags found
No related merge requests found
......@@ -121,9 +121,12 @@ public class BGTableItem {
public boolean isFull() {
Integer maxParticipants = businessGroup.getMaxParticipants();
if(maxParticipants == null || maxParticipants.intValue() <= 0) {
if(maxParticipants == null || maxParticipants.intValue() < 0) {
return false;
}
if(maxParticipants.intValue() == 0) {
return true;
}
if(maxParticipants.intValue() <= (getNumOfPendings() + getNumOfParticipants())) {
return true;
}
......
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