Project

General

Profile

« Previous | Next » 

Revision 2e5addbf

Added by Katja Luther over 3 years ago

fix #7941: use the same parser method in new taxonnode wizard as in name editor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeWizardPage.java
40 40
    private final IWizardPageListener wizardPageListener;
41 41
    private final boolean isCreateNew;
42 42

  
43
    private ParseHandler parseHandler;
44

  
43 45
    /**
44 46
	 * <p>
45 47
	 * Constructor for TaxonNodeWizardPage.
......
62 64
		setTitle("Edit taxon node");
63 65
		this.isCreateNew = isCreateNew;
64 66

  
67

  
65 68
	}
66 69

  
67 70
	/** {@inheritDoc} */
......
137 140
		if (((TaxonNodeDetailElement) getDetailElement()).getTaxon() == null){
138 141
			String taxonName = ((TaxonNodeDetailElement) getDetailElement()).getTaxonName();
139 142
			Reference reference = ((TaxonNodeDetailElement) getDetailElement()).getReference();
140
			INonViralName parseReferencedName = ParseHandler.parseReferencedName(taxonName, null);
143
			if (parseHandler == null){
144
			    parseHandler = ParseHandler.NewInstance(null);
145
			}
146
			final INonViralName parseReferencedName = parseHandler.parseAndResolveDuplicates(taxonName);
141 147

  
142 148
			Taxon taxon = Taxon.NewInstance(parseReferencedName, reference);
143 149
			taxon.setPublish( ((TaxonNodeDetailElement) getDetailElement()).is_publish());

Also available in: Unified diff