Project

General

Profile

« Previous | Next » 

Revision fce7d237

Added by Cherian Mathew over 8 years ago

Add remoting checks for merge, Move to merge call which returns updated transient object

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AgentEditorInput.java
148 148
	@Override
149 149
	public TeamOrPersonBase save(TeamOrPersonBase entity) {
150 150
	    if(CdmStore.getCurrentSessionManager().isRemoting()) {
151
	        return (TeamOrPersonBase) CdmStore.getService(IAgentService.class).merge(entity);
151
	        return (TeamOrPersonBase) CdmStore.getService(IAgentService.class).merge(entity, true);
152 152
	    } else {
153 153
	        CdmStore.getService(IAgentService.class).saveOrUpdate(entity) ;
154 154
	        return entity;

Also available in: Unified diff