[master]: Fix create children in section service where indicators were created more than once.

This commit is contained in:
Konstantinos Triantafyllou 2024-07-02 20:05:44 +03:00
parent b231778851
commit 711b75c206
1 changed files with 3 additions and 3 deletions

View File

@ -134,13 +134,13 @@ public class SectionService {
this.topicDAO.findByCategoriesContaining(category.getId()).forEach(topic -> {
this.stakeholderDAO.findByTopicsContaining(topic.getId()).forEach(stakeholder -> {
this.save(stakeholder, subCategory, section.copy(), index);
section.getIndicators().forEach(indicator -> {
this.indicatorService.createChildren(section, this.indicatorService.find(indicator));
});
});
});
});
});
section.getIndicators().forEach(indicator -> {
this.indicatorService.createChildren(section, this.indicatorService.find(indicator));
});
}
public void updateChildren(Section section) {