[master]: Fix create children in section service where indicators were created more than once.
This commit is contained in:
parent
b231778851
commit
711b75c206
|
@ -134,13 +134,13 @@ public class SectionService {
|
||||||
this.topicDAO.findByCategoriesContaining(category.getId()).forEach(topic -> {
|
this.topicDAO.findByCategoriesContaining(category.getId()).forEach(topic -> {
|
||||||
this.stakeholderDAO.findByTopicsContaining(topic.getId()).forEach(stakeholder -> {
|
this.stakeholderDAO.findByTopicsContaining(topic.getId()).forEach(stakeholder -> {
|
||||||
this.save(stakeholder, subCategory, section.copy(), index);
|
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) {
|
public void updateChildren(Section section) {
|
||||||
|
|
Loading…
Reference in New Issue