Commit a4b26b0f authored by ='s avatar =

Resolve Error triggering event parameters caused remove a group

administrator to configure
parent 75785ab9
...@@ -441,10 +441,11 @@ public class Group implements Cacheable, Externalizable { ...@@ -441,10 +441,11 @@ public class Group implements Cacheable, Externalizable {
} }
// Fire event. // Fire event.
if (adminCollection) {
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
if (adminCollection) {
params.put("admin", user.toString()); params.put("admin", user.toString());
if (alreadyGroupUser) { if (alreadyGroupUser) {
params.put("member", user.toString());
GroupEventDispatcher.dispatchEvent(Group.this, GroupEventDispatcher.dispatchEvent(Group.this,
GroupEventDispatcher.EventType.member_removed, params); GroupEventDispatcher.EventType.member_removed, params);
} }
...@@ -452,9 +453,9 @@ public class Group implements Cacheable, Externalizable { ...@@ -452,9 +453,9 @@ public class Group implements Cacheable, Externalizable {
GroupEventDispatcher.EventType.admin_added, params); GroupEventDispatcher.EventType.admin_added, params);
} }
else { else {
Map<String, String> params = new HashMap<String, String>();
params.put("member", user.toString()); params.put("member", user.toString());
if (alreadyGroupUser) { if (alreadyGroupUser) {
params.put("admin", user.toString());
GroupEventDispatcher.dispatchEvent(Group.this, GroupEventDispatcher.dispatchEvent(Group.this,
GroupEventDispatcher.EventType.admin_removed, params); GroupEventDispatcher.EventType.admin_removed, params);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment