Revision e739cccb
Added by Andreas Müller almost 6 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/TaxonController.java | ||
---|---|---|
163 | 163 |
TaxonNode subtree, boolean includeUnpublished, |
164 | 164 |
HttpServletResponse response) throws IOException { |
165 | 165 |
taxonBase = checkExistsAndAccess(taxonBase, NO_UNPUBLISHED, response); |
166 |
if (subtree != null && taxonBase != null){ |
|
166 |
if (subtree == null){ |
|
167 |
return taxonBase; |
|
168 |
}else if(taxonBase != null){ |
|
167 | 169 |
//TODO synonyms maybe can not be initialized |
168 | 170 |
Taxon taxon = taxonBase.isInstanceOf(Synonym.class)? |
169 | 171 |
CdmBase.deproxy(taxonBase, Synonym.class).getAcceptedTaxon(): |
Also available in: Unified diff
ref #7745 filter getSynonymy for subtree - fix bug in checkExistsSubtreeAndAccess