Project

General

Profile

« Previous | Next » 

Revision a92e923a

Added by Patrick Plitzner almost 6 years ago

fix #7399 Fix multiRepException when adding taxon nodes

  • used remoteLoad() of CdmEntitySession

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/WorkingSetEditor.java
174 174
    }
175 175

  
176 176
    public void init(UUID workingSetUuid) {
177
        this.workingSet = CdmStore.getService(IWorkingSetService.class).load(workingSetUuid);
177
        this.workingSet = cdmEntitySession.remoteLoad(CdmStore.getService(IWorkingSetService.class), workingSetUuid);
178 178
        if(workingSet.getLabel()!=null){
179 179
            composite.getTxt_label().setText(workingSet.getLabel());
180 180
        }
......
202 202
    }
203 203

  
204 204
    public void addTaxonNode(TaxonNodeDto taxonNodeDto){
205
        TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeDto.getUuid());
205
        TaxonNode taxonNode = cdmEntitySession.remoteLoad(CdmStore.getService(ITaxonNodeService.class), taxonNodeDto.getUuid());
206 206
        //check if node belongs to same classification
207 207
        Set<TaxonNode> taxonSubtreeFilter = workingSet.getTaxonSubtreeFilter();
208 208
        if(taxonSubtreeFilter!=null && !taxonSubtreeFilter.isEmpty()){

Also available in: Unified diff