Project

General

Profile

Revision b3a39647

IDb3a39647564364a07362136440c43f1efc08eae5
Parent 45e3e635
Child a3fdfdf4

Added by Katja Luther over 1 year ago

fix test

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/RemotingDeleteTaxonNodeOperation.java
20 20
import eu.etaxonomy.cdm.api.service.DeleteResult;
21 21
import eu.etaxonomy.cdm.api.service.UpdateResult;
22 22
import eu.etaxonomy.cdm.api.service.config.TaxonDeletionConfigurator;
23
import eu.etaxonomy.cdm.model.taxon.Classification;
24 23
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
25 24
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
26 25
import eu.etaxonomy.taxeditor.operation.RemotingCdmUpdateOperation;
......
65 64
        if(treeNodes.size() == 1) {
66 65
            // when single node this is either a taxon or a classification
67 66
            TaxonNodeDto node = treeNodes.iterator().next();
68
            if(node.getType() != null && node.getType().equals(Classification.class)) {
69
                return CdmApplicationState.getCurrentAppConfig().getClassificationService().delete(node.getUuid());
67
            if(node.getTaxonUuid() == null) {
68
                return CdmApplicationState.getCurrentAppConfig().getClassificationService().delete(node.getClassificationUUID());
70 69
            }
71 70
            return CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().deleteTaxonNode((node).getUuid(), config);
72 71
//            } else if(node.getType().equals( Classification.class)) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)