ref #7980 fix aggregation for titleCache of reused descriptions
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 7 Oct 2021 16:31:41 +0000 (18:31 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 7 Oct 2021 16:31:41 +0000 (18:31 +0200)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/description/StructuredDescriptionAggregation.java

index 74b0d4178b6e698a0d04d66b10a9dd0b27a44b91..a4bf519251d0f229b6bd58dae3ff3295db5bb26f 100644 (file)
@@ -229,6 +229,7 @@ public class StructuredDescriptionAggregation
             }
         }
         addSourceDescriptionToDescribedEntity(newSourceDescription);
+        existingSourceDescription.setTitleCache(newSourceDescription.getTitleCache(), true);
 
         for (DescriptionElementBase debToRemove : elementsToRemove){
             existingSourceDescription.removeElement(debToRemove);