Commit 885340b6 by Tuomas Riihimäki

Fix checking of wrong object type! Caught by sonarqube

1 parent 59613c7e
......@@ -183,7 +183,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
orgRole.setEventRoles(new ArrayList<>());
}
if (!orgRole.getEventRoles().contains(orgRole)) {
if (!orgRole.getEventRoles().contains(eventRole)) {
orgRole.getEventRoles().add(eventRole);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!