import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
+import eu.etaxonomy.cdm.api.application.CdmApplicationState;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
import eu.etaxonomy.cdm.api.service.IGroupService;
private Group group;
protected CdmAuthorityEditorInput(ConversationHolder conversation, Group group) {
+ super(true);
this.conversation = conversation;
- this.group = group;
+ this.group = CdmApplicationState.getCurrentAppConfig().getGroupService().load(group.getUuid());
}
*/
@Override
public void merge() {
- CdmStore.getService(IGroupService.class).merge(group);
+ if(CdmStore.getCurrentSessionManager().isRemoting()) {
+ group = CdmStore.getService(IGroupService.class).merge(group, true).getMergedEntity();
+ }
}
}