Project

General

Profile

« Previous | Next » 

Revision f210d453

Added by Katja Luther over 5 years ago

fix #7542: the current taxon should not be selectable for moveSynonym to another accepted taxon

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/MoveSynonymToAnotherAcceptedTaxonHandlerE4.java
22 22

  
23 23
import eu.etaxonomy.cdm.model.common.CdmBase;
24 24
import eu.etaxonomy.cdm.model.taxon.Synonym;
25
import eu.etaxonomy.cdm.model.taxon.Taxon;
26 25
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
27 26
import eu.etaxonomy.taxeditor.editor.EditorUtil;
28 27
import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInputE4;
......
78 77
		}
79 78

  
80 79
		Synonym synonym = (Synonym) selection.getFirstElement();
81
		Taxon oldParent = input.getTaxon();
80
		TaxonNode oldParent = input.getTaxonNode();
82 81
		Set<UUID> excludeTaxa = new HashSet<>();
83 82
		excludeTaxa.add(oldParent.getUuid());
84 83

  

Also available in: Unified diff