Project

General

Profile

« Previous | Next » 

Revision 7950c5b2

Added by Katja Luther over 1 year ago

ref #10137: improve derivate handling in dtos

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DerivedUnitDTO.java
385 385
	@Override
386 386
    protected void updateTreeDependantData(Set<DerivedUnitDTO> derivatives) {
387 387
		for (DerivedUnitDTO derivative: derivatives) {
388
			this.setHasDna(this.isHasDna() || derivative.isHasDna());
389
			this.setHasDetailImage(this.isHasDetailImage() || derivative.isHasDetailImage());
388
			this.setHasDna(this.isHasDna() || derivative.isHasDna() || !derivative.getDerivationTreeSummary().getMolecularDataList().isEmpty());
389
			this.setHasDetailImage(this.isHasDetailImage() || derivative.isHasDetailImage() || !derivative.getDerivationTreeSummary().getDetailImages().isEmpty());
390 390
			this.setHasSpecimenScan(isHasSpecimenScan()|| derivative.isHasSpecimenScan());
391 391
			this.setHasCharacterData(isHasCharacterData()||derivative.isHasCharacterData());
392 392
		}

Also available in: Unified diff