Project

General

Profile

Revision e739cccb

IDe739cccbb7af06098fb2d57009e80380d6b0773d
Parent 2941b4e5
Child 2a2911e8

Added by Andreas Müller 11 months ago

ref #7745 filter getSynonymy for subtree - fix bug in checkExistsSubtreeAndAccess

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)