Project

General

Profile

« Previous | Next » 

Revision dcff61a3

Added by Katja Luther over 5 years ago

fix #6530: save the unpersisted entity before closing EditFromSelectionWizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EditFromSelectionWizard.java
182 182
	    IService<CdmBase> service = CdmStore.getService(rootElement);
183 183
	    if(rootElement.getId()!=0){
184 184
	        service.merge(rootElement, true);
185

  
186
	    }else{
187
	        rootElement = service.save(rootElement);
185 188
	    }
186 189
	    if(previousCdmEntitySession!=null){
187
	        selectionElement.setEntity(previousCdmEntitySession.load(rootElement, true));
188
	    }
190
            selectionElement.setEntity(previousCdmEntitySession.load(rootElement, true));
191
        }
192

  
189 193
		return true;
190 194
	}
191 195

  

Also available in: Unified diff