Project

General

Profile

« Previous | Next » 

Revision 35b7d4f5

Added by Patrick Plitzner over 5 years ago

Only add description element with protologue feature to section

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java
63 63
		Collection<DescriptionElementBase> result = new ArrayList<>();
64 64
		List<TaxonNameDescription> descriptions = getTaxonNameDescriptions(entity);
65 65
		for (TaxonNameDescription desc : descriptions){
66
			result.addAll(desc.getElements());
66
			desc.getElements()
67
			.stream()
68
			.filter(element -> element.getFeature().equals(Feature.PROTOLOGUE()))
69
			.forEach(element -> result.add(element));
67 70
		}
68 71
		return result;
69 72
//OLD:	return getTaxonNameDescription(entity).getElements();

Also available in: Unified diff