Project

General

Profile

Revision 2952d237

ID2952d237c79b9f2c707bb585593cba09142ccbed
Parent cdbf50c2
Child 670c75f5

Added by Andreas Kohlbecker over 2 years ago

ref #7355 avoiding unneccesary lazy select reload

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/event/EntityChangeEvent.java
60 60
        return Type.REMOVED.equals(type);
61 61
     }
62 62

  
63
    public boolean isCreatedType() {
64
        return Type.CREATED.equals(type);
65
     }
66

  
63 67
}
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
333 333
            if(event.isCreateOrModifiedType()){
334 334

  
335 335
                getCache().load(event.getEntity());
336
                getView().getNomReferenceCombobox().reload(); // refreshSelectedValue(modifiedReference);
337
                if(event.getType().equals(EntityChangeEvent.Type.CREATED)){
336
                if(event.isCreatedType()){
338 337
                    getView().getNomReferenceCombobox().setValue((Reference) event.getEntity());
338
                } else {
339
                    getView().getNomReferenceCombobox().reload(); // refreshSelectedValue(modifiedReference);
339 340
                }
340 341
                getView().getCombinationAuthorshipField().discard(); //refresh from the datasource
341 342
                getView().updateAuthorshipFields();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)