Project

General

Profile

Revision 977a388a

ID977a388a243263ff16e295be9ff8e71ea64f96f9
Parent 973082b3
Child d7909683

Added by Andreas Müller about 2 years ago

ref #6682 fix directions for taxonRelationship service

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java
3220 3220
            if (doDirect){
3221 3221
                direction = Direction.relatedTo;
3222 3222
                //TODO order hints, property path
3223
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction);
3223
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3224 3224
                for (TaxonRelationship relation : relations){
3225 3225
                    dto.addRelation(relation, direction, languages);
3226 3226
                }
......
3228 3228
            if (doInvers){
3229 3229
                direction = Direction.relatedFrom;
3230 3230
                //TODO order hints, property path
3231
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction);
3231
                List<TaxonRelationship> relations = dao.getTaxonRelationships(taxon, type, includeUnpublished, pageSize, pageNumber, null, null, direction.invers());
3232 3232
                for (TaxonRelationship relation : relations){
3233 3233
                    dto.addRelation(relation, direction, languages);
3234 3234
                }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)