Merge branch 'release/5.0.0' into develop
authorjenkins <jenkins-int@bgbm.org>
Thu, 17 May 2018 13:46:50 +0000 (15:46 +0200)
committerjenkins <jenkins-int@bgbm.org>
Thu, 17 May 2018 13:46:50 +0000 (15:46 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/DeleteTaxonBaseHandlerE4.java

index 572fd32..20d63db 100644 (file)
@@ -130,8 +130,11 @@ public class DeleteTaxonBaseHandlerE4 implements IPostOperationEnabled {
                } else if (selectedElement instanceof Taxon ){
                    if (selectedElement instanceof Taxon &&((Taxon) selectedElement).isProparteSynonym() ) {
                     editor.getTaxon().removeTaxon((Taxon)selectedElement, TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR());
+                    editor.getTaxon().removeTaxon((Taxon)selectedElement, TaxonRelationshipType.PARTIAL_SYNONYM_FOR());
                 }else{
                     editor.getTaxon().removeTaxon((Taxon)selectedElement, TaxonRelationshipType.MISAPPLIED_NAME_FOR());
+                    editor.getTaxon().removeTaxon((Taxon)selectedElement, TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR());
+                    editor.getTaxon().removeTaxon((Taxon)selectedElement, TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR());
                 }
                    editor.getEditorInput().addTaxonBaseToDelete((TaxonBase)selectedElement,deleteConfig);
                    editor.setDirty();