Project

General

Profile

« Previous | Next » 

Revision 07d42f59

Added by Andreas Müller over 10 years ago

fix for invisible description.setTaxon method in Editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/MoveDescriptionToOtherTaxonOperation.java
19 19

  
20 20
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
21 21
import eu.etaxonomy.cdm.api.service.IDescriptionService;
22
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
23
import eu.etaxonomy.cdm.api.service.exception.DataChangeNoRollbackException;
24 22
import eu.etaxonomy.cdm.model.common.Annotation;
25 23
import eu.etaxonomy.cdm.model.common.AnnotationType;
26 24
import eu.etaxonomy.cdm.model.common.Language;
27 25
import eu.etaxonomy.cdm.model.description.TaxonDescription;
28
import eu.etaxonomy.cdm.model.taxon.Synonym;
29 26
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
30 27
import eu.etaxonomy.taxeditor.editor.EditorUtil;
31 28
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation;
......
81 78
			if(!StringUtils.isBlank(description.getTitleCache())){
82 79
				separator = " - ";
83 80
			}
84
			description.setTitleCache(description.getTitleCache() + separator + moveMessage);
81
			description.setTitleCache(description.getTitleCache() + separator + moveMessage, true);
85 82
		}
86 83
		Annotation annotation = Annotation.NewInstance(moveMessage, Language.DEFAULT());
87 84
		annotation.setAnnotationType(AnnotationType.TECHNICAL());
88 85
		description.addAnnotation(annotation);
89
		description.setTaxon(newAcceptedTaxonNode.getTaxon());
86
		newAcceptedTaxonNode.getTaxon().addDescription(description);
90 87
		CdmStore.getService(IDescriptionService.class).saveOrUpdate(description);	
91 88
		monitor.worked(40);
92 89
        

Also available in: Unified diff