Project

General

Profile

« Previous | Next » 

Revision 775c87a6

Added by Andreas Kohlbecker over 5 years ago

ref #7899 starting 'Incorrect name' editor without mode VALIDATE_AGAINST_HIGHER_NAME_PART and hiding 'Ortographic correction' toggle

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
567 567
                    .forEach(m -> namePopup.enableMode(m));
568 568
                if(boundPropertyId.matches("orthographicVariant.otherName") && getView().isModeEnabled(TaxonNamePopupEditorMode.ORTHOGRAPHIC_CORRECTION)){
569 569
                    namePopup.enableMode(TaxonNamePopupEditorMode.NOMENCLATURALREFERENCE_SECTION_EDITING_ONLY);
570
                    namePopup.disableMode(TaxonNamePopupEditorMode.VALIDATE_AGAINST_HIGHER_NAME_PART);
571
                    namePopup.getOrthographicVariantToggle().setVisible(false);
570 572
                }
571 573
                namePopup.loadInEditor(event.getEntityUuid());
572 574
            }
......
613 615
                        .forEach(m -> namePopup.enableMode(m));
614 616
                if(boundPropertyId.matches("orthographicVariant.otherName") && getView().isModeEnabled(TaxonNamePopupEditorMode.ORTHOGRAPHIC_CORRECTION)){
615 617
                    namePopup.enableMode(TaxonNamePopupEditorMode.NOMENCLATURALREFERENCE_SECTION_EDITING_ONLY);
618
                    namePopup.disableMode(TaxonNamePopupEditorMode.VALIDATE_AGAINST_HIGHER_NAME_PART);
616 619
                    Reference nomrefPreset = (Reference)((AbstractPopupEditor<TaxonNameDTO, TaxonNameEditorPresenter>)getView()).getBean().getNomenclaturalReference();
617 620
                    namePopup.setCdmEntityInstantiator(new BeanInstantiator<TaxonName>() {
618 621

  
......
623 626
                            return newTaxonName;
624 627
                        }
625 628
                    });
629
                    namePopup.getOrthographicVariantToggle().setVisible(false);
626 630
                }
627 631
                namePopup.loadInEditor(null);
628 632
            }

Also available in: Unified diff