Project

General

Profile

« Previous | Next » 

Revision d146cd8f

Added by Katja Luther over 2 years ago

ref #9821: no references yet should be shown only once

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceSection.java
79 79
		Collection<OriginalSourceBase> collectionElement = getCollectionElement(getEntity());
80 80
		Collection<OriginalSourceBase> collectionDescription = getCollectionDescription(getEntity());
81 81

  
82
		if(collectionElement == null || collectionElement.isEmpty()){
82
		if((collectionElement == null || collectionElement.isEmpty()) && (collectionDescription == null || collectionDescription.isEmpty())){
83 83
			createEmptyContent();
84
		}else{
84
		}
85
		if (collectionElement != null && !collectionElement.isEmpty()){
85 86
		    List<OriginalSourceBase> elements = new ArrayList<>(collectionElement);
86 87
		    Collections.sort(elements, getComparator());
87 88
			createDynamicContents(elements);
......
92 93

  
93 94
		
94 95
		
95
		if(collectionDescription == null || collectionDescription.isEmpty()){
96
			createEmptyContent();
97
		}else{
98
		    List<OriginalSourceBase> elements = new ArrayList<>(collectionDescription);
96
		if(collectionDescription != null && !collectionDescription.isEmpty()){
97
			List<OriginalSourceBase> elements = new ArrayList<>(collectionDescription);
99 98
		    Collections.sort(elements, getComparator());
100 99
		    createDynamicContentsDisabled(elements);			
101 100
			forceExpansion = true;

Also available in: Unified diff