public Object[] getChildren(Object parentElement) {
Collection<TermDto> children = new HashSet<>();
if(parentElement instanceof TermVocabularyDto){
- children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy((TermVocabularyDto)parentElement));
+ children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy(((TermVocabularyDto)parentElement).getUuid()));
+ // FIXME this is only temporarily done on the taxeditor side for the hotfix
+ // the cdmlib service method already sets the vocabulary DTO but cdmlib is not released with this hotfix
+ children.forEach(child->child.setVocabularyDto((TermVocabularyDto) parentElement));
} else if(parentElement instanceof TermDto){
if(((TermDto) parentElement).getIncludes()!=null){
children.addAll(((TermDto) parentElement).getIncludes());