Project

General

Profile

Revision 272b6c5d

ID272b6c5d4d02f3a4cd4a467650b537a6e88c02e7
Parent aa9f06a0
Child 602ff4ba

Added by Katja Luther about 3 years ago

handle all MAN and Synonyms in setInputForRelatedTaxa to open in name editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java
40 40
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
41 41
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
42 42
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
43
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
44 43
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
45 44
import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput;
46 45
import eu.etaxonomy.taxeditor.editor.ChooseFromMultipleAcceptedTaxaDialog;
......
143 142
                    Set<Taxon> acceptedTaxa = new HashSet<Taxon>();
144 143
                    Set<TaxonRelationship> relations = taxon.getRelationsFromThisTaxon();
145 144
                    for(TaxonRelationship relation : relations){
146
                        if(relation.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())){
145
                        if(relation.getType().isAnyMisappliedName() || relation.getType().isAnySynonym()){
147 146
                            acceptedTaxa.add(relation.getToTaxon());
148 147
                        }
149 148
                    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)