Project

General

Profile

« Previous | Next » 

Revision ad1212c9

Added by Patrick Plitzner almost 5 years ago

Revert "ref #8263 Set term vocabulary DTO when fetching terms"

This reverts commit a9f5e4932d7f9f2b149dd10807935e79f25adf16.

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).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));
39
	        children.addAll(CdmStore.getService(IVocabularyService.class).getCompleteTermHierarchy((TermVocabularyDto)parentElement));
43 40
	    } else if(parentElement instanceof TermDto){
44 41
	            if(((TermDto) parentElement).getIncludes()!=null){
45 42
	                children.addAll(((TermDto) parentElement).getIncludes());

Also available in: Unified diff