Project

General

Profile

Revision e5083306

IDe5083306d18e7d13fbb279a4439941aabd750db1
Parent 6c2110e6
Child cc1886a6

Added by Katja Luther 2 months ago

ref #9578: avoid duplicates for parent and child selection

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
1134 1134
                List<TaxonNode> children = new ArrayList<>();
1135 1135
                children.addAll(loadChildNodesOfTaxonNode(node,
1136 1136
                        propertyPaths, true,  true, sortMode));
1137
                nodes.addAll(children);
1137
                for (TaxonNode child: children){
1138
                    if (!nodes.contains(child)){
1139
                        nodes.add(child);
1140
                    }
1141
                }
1138 1142
            }
1139 1143
        }
1140 1144

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)