Project

General

Profile

« Previous | Next » 

Revision ddd2da06

Added by Patrick Plitzner over 8 years ago

Fix refresh problem when creating a FieldUnit with no previous viewer
content

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java
231 231
                cdmEntitySession.bind();
232 232
            }
233 233

  
234
            List<SpecimenOrObservationBase> derivates = null;
234 235
            if(derivativeUuids!=null){
235 236
                this.derivateToRootEntityMap = new HashMap<SpecimenOrObservationBase<?>, SpecimenOrObservationBase<?>>();
236 237
                this.rootElements = new HashSet<SpecimenOrObservationBase<?>>();
237
                List<SpecimenOrObservationBase> derivates =
238
                        CdmStore.getService(IOccurrenceService.class).load(new ArrayList(derivativeUuids), SPECIMEN_INIT_STRATEGY);
239
                updateRootEntities(derivates);
238
                derivates = CdmStore.getService(IOccurrenceService.class).load(new ArrayList(derivativeUuids), SPECIMEN_INIT_STRATEGY);
240 239
            }
240
            updateRootEntities(derivates);
241 241
            refreshTree(false);
242 242
            previousCdmEntitySession.bind();
243 243
        }
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/CreateFieldUnitContextMenu.java
89 89
                                        fieldUnit = CdmBase.deproxy(CdmStore.getService(IOccurrenceService.class).save(fieldUnit), FieldUnit.class);
90 90
                                        derivateView.getConversationHolder().commit();
91 91
                                        derivateView.addFieldUnit(fieldUnit);
92
                                        derivateView.refreshTree();
92
                                        derivateView.updateRootEntities();
93 93
                                    }
94 94
                                });
95 95
                            }

Also available in: Unified diff