Project

General

Profile

Revision 1ce096c2

ID1ce096c2da1c9d25f7534646b8eddf0c4986e729
Parent f34422eb
Child 3a9975f6

Added by Katja Luther over 1 year ago

ref #7249: deleteTypedesignation should be called witg uuid parameter

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
15 15
import eu.etaxonomy.cdm.api.service.INameService;
16 16
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
17 17
import eu.etaxonomy.cdm.model.name.NameTypeDesignation;
18
import eu.etaxonomy.cdm.model.name.INonViralName;
19 18
import eu.etaxonomy.cdm.model.name.Rank;
20 19
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
21 20
import eu.etaxonomy.cdm.model.name.TaxonName;
......
94 93
	public void removeElement(TypeDesignationBase element) {
95 94
		boolean removeTypeDesignationFromAllTypifiedNames = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES);
96 95
		TaxonName entity = removeTypeDesignationFromAllTypifiedNames ? null : getEntity();
97
		CdmStore.getService(INameService.class).deleteTypeDesignation(entity, element);
96
		CdmStore.getService(INameService.class).deleteTypeDesignation(entity.getUuid(), element.getUuid());
98 97
	}
99 98

  
100 99
	/** {@inheritDoc} */
101 100
	@Override
102 101
    public void setTaxonBase(TaxonBase entity) {
103 102
		this.taxonBase = entity;
104
		TaxonName name = (TaxonName) HibernateProxyHelper.deproxy(entity.getName());
103
		TaxonName name = HibernateProxyHelper.deproxy(entity.getName());
105 104
		setEntity(name);
106 105
	}
107 106

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)