Project

General

Profile

« Previous | Next » 

Revision 76fe3732

Added by Cherian Mathew over 8 years ago

#5161 Fix problem of new entity not refreshed

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameEditorInput.java
117 117

  
118 118
	/** {@inheritDoc} */
119 119
	@Override
120
    public boolean save(TaxonNameBase entity) {
120
    public TaxonNameBase save(TaxonNameBase entity) {
121 121
	    if(CdmStore.getCurrentSessionManager().isRemoting()) {
122
	        return CdmStore.getService(INameService.class).merge(entity) != null;
122
	        return CdmStore.getService(INameService.class).merge(entity) ;
123 123
	    } else {
124
	        return CdmStore.getService(INameService.class).saveOrUpdate(entity) != null;
124
	        CdmStore.getService(INameService.class).saveOrUpdate(entity);
125
	        return entity;
125 126
	    }
126 127
	}
127 128

  

Also available in: Unified diff