Project

General

Profile

« Previous | Next » 

Revision aec76ebb

Added by Andreas Kohlbecker about 5 years ago

ref #8176 removing workaround with bad performance which was need for broken TaxonNameStringFilterablePagingProvider.idFor()

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
441 441
                        getCache().load(event.getEntity());
442 442
                        if(getView().getGenusOrUninomialField() instanceof WeaklyRelatedEntityCombobox){
443 443
                            WeaklyRelatedEntityCombobox<TaxonName> weaklyRelatedEntityCombobox = (WeaklyRelatedEntityCombobox<TaxonName>)getView().getGenusOrUninomialField();
444
                            if(event.isCreatedType()){
445
                                weaklyRelatedEntityCombobox.setValue(((TaxonName)event.getEntity()).getGenusOrUninomial());
446
                                weaklyRelatedEntityCombobox.reload();
447
                            } else {
448
                                weaklyRelatedEntityCombobox.reload();
449
                            }
444
                            weaklyRelatedEntityCombobox.setValue(((TaxonName)event.getEntity()).getGenusOrUninomial());
450 445
                            // NOTE: in contrast to the ToOneRelatedEntityCombobox the .discard() does not
451 446
                            // work here since no datasource is bound to the field, see weaklyRelatedEntityCombobox.reload()
452 447
                            weaklyRelatedEntityCombobox.updateButtons();

Also available in: Unified diff