Use entity as parameter instead of uuid to avoid conflicts with
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 4 Apr 2016 04:26:26 +0000 (06:26 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 4 Apr 2016 13:31:44 +0000 (15:31 +0200)
transient objects

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java

index da36085abfc0fe0b53d5ffc464a5f3b8c35a5e54..11367f963396ab83a3b387eef6f18632ea2d1924 100644 (file)
@@ -96,7 +96,7 @@ public class TypeDesignationSection extends AbstractEntityCollectionSection<Taxo
        public void removeElement(TypeDesignationBase element) {
                boolean removeTypeDesignationFromAllTypifiedNames = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES);
                TaxonNameBase entity = removeTypeDesignationFromAllTypifiedNames ? null : getEntity();
        public void removeElement(TypeDesignationBase element) {
                boolean removeTypeDesignationFromAllTypifiedNames = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES);
                TaxonNameBase entity = removeTypeDesignationFromAllTypifiedNames ? null : getEntity();
-               CdmStore.getService(INameService.class).deleteTypeDesignation(entity!=null?entity.getUuid():null, element!=null?element.getUuid():null);
+               CdmStore.getService(INameService.class).deleteTypeDesignation(entity, element);
        }
 
        /*
        }
 
        /*