Revision d3c53a58
Added by Katja Luther over 7 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonNode.java | ||
---|---|---|
365 | 365 |
public TaxonNode addChildTaxon(Taxon taxon, int index, Reference citation, String microCitation) { |
366 | 366 |
Classification classification = HibernateProxyHelper.deproxy(this.getClassification(), Classification.class); |
367 | 367 |
taxon = HibernateProxyHelper.deproxy(taxon, Taxon.class); |
368 |
if (this.getClassification().isTaxonInTree(taxon)){
|
|
368 |
if (classification.isTaxonInTree(taxon)){
|
|
369 | 369 |
throw new IllegalArgumentException(String.format("Taxon may not be in a classification twice: %s", taxon.getTitleCache())); |
370 | 370 |
} |
371 | 371 |
return addChildNode(new TaxonNode(taxon), index, citation, microCitation); |
Also available in: Unified diff
specimen import changes