Project

General

Profile

« Previous | Next » 

Revision edc368f2

Added by Patrick Plitzner about 3 years ago

ref #8263 Set term vocabulary DTO when fetching terms

  • temporary commit for hotfix which will be reverted in develop because the cdmlib service method already sets the term vocabulary DTO

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/TermDtoContentProvider.java
36 36
	public Object[] getChildren(Object parentElement) {
37 37
	    Collection<TermDto> children = new HashSet<>();
38 38
	    if(parentElement instanceof TermVocabularyDto){
39
	        children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy((TermVocabularyDto)parentElement));
39
	        children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy(((TermVocabularyDto)parentElement).getUuid()));
40
	        // FIXME this is only temporarily done on the taxeditor side for the hotfix
41
	        // the cdmlib service method already sets the vocabulary DTO but cdmlib is not released with this hotfix
42
	        children.forEach(child->child.setVocabularyDto((TermVocabularyDto) parentElement));
40 43
	    } else if(parentElement instanceof TermDto){
41 44
	            if(((TermDto) parentElement).getIncludes()!=null){
42 45
	                children.addAll(((TermDto) parentElement).getIncludes());

Also available in: Unified diff