Revision 485da8a9
Added by Andreas Kohlbecker over 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DerivedUnitDTO.java | ||
---|---|---|
170 | 170 |
setPreferredStableUri(derivedUnit.getPreferredStableUri()); |
171 | 171 |
|
172 | 172 |
// citation |
173 |
Collection<FieldUnit> fieldUnits = derivedUnit.collectFieldUnits();
|
|
173 |
Collection<FieldUnit> fieldUnits = derivedUnit.collectRootUnits(FieldUnit.class);
|
|
174 | 174 |
if (fieldUnits.size() == 1) { |
175 | 175 |
setCitation(fieldUnits.iterator().next().getTitleCache()); |
176 | 176 |
} |
Also available in: Unified diff
fix #9395 DerivedUnit.collectFieldUnits() as DerivedUnit.collectRootUnits() to return all types of root units