Project

General

Profile

« Previous | Next » 

Revision cdb211e7

Added by Patrick Plitzner about 8 years ago

Use entity as parameter instead of uuid to avoid conflicts with
transient objects

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
96 96
	public void removeElement(TypeDesignationBase element) {
97 97
		boolean removeTypeDesignationFromAllTypifiedNames = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES);
98 98
		TaxonNameBase entity = removeTypeDesignationFromAllTypifiedNames ? null : getEntity();
99
		CdmStore.getService(INameService.class).deleteTypeDesignation(entity!=null?entity.getUuid():null, element!=null?element.getUuid():null);
99
		CdmStore.getService(INameService.class).deleteTypeDesignation(entity, element);
100 100
	}
101 101

  
102 102
	/*

Also available in: Unified diff