change delete argument to UUID
authorKatja Luther <k.luther@bgbm.org>
Thu, 18 Jun 2015 13:15:42 +0000 (15:15 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 22 Jun 2015 08:52:51 +0000 (10:52 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/DeleteHandler.java

index 206f0d518538d97a4811bb5fbda4973798a6e16c..a34d7c5d1ce0f0d7cc4b40ed6a0a4357d841a6a2 100644 (file)
@@ -140,14 +140,14 @@ public class DeleteHandler extends AbstractHandler {
                                                if (name != null){
                                                        NameDeletionConfigurator config = new NameDeletionConfigurator();
                                                        
                                                if (name != null){
                                                        NameDeletionConfigurator config = new NameDeletionConfigurator();
                                                        
-                                                       result = service.delete(name, config);
+                                                       result = service.delete(name.getUuid(), config);
                                                } 
                                        } else if (object instanceof TaxonBase){
                                                ITaxonService service = controller.getTaxonService();
                                                TaxonBase taxonBase = service.load(((TaxonBase) object).getUuid());
                                                if (taxonBase != null){
                                                        if (object instanceof Taxon){
                                                } 
                                        } else if (object instanceof TaxonBase){
                                                ITaxonService service = controller.getTaxonService();
                                                TaxonBase taxonBase = service.load(((TaxonBase) object).getUuid());
                                                if (taxonBase != null){
                                                        if (object instanceof Taxon){
-                                                               result = service.deleteTaxon((Taxon)object, null, null);
+                                                               result = service.deleteTaxon(((TaxonBase) object).getUuid(), null, null);
                                                        }else{
                                                                result = service.deleteSynonym((Synonym)object, null);
                                                        }
                                                        }else{
                                                                result = service.deleteSynonym((Synonym)object, null);
                                                        }