From 016cfa575c436e9339aa2826ea4296f61a679d59 Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Tue, 20 Sep 2016 15:14:26 +0200
Subject: [PATCH] Compare taxon editor input based on taxon instead of taxon
node (Revert 93c6e0a894d2e4b0c9df6c7c3feff2f20e0b9e38)
---
.../eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
index 5b5bcb9f1..98481d458 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
@@ -337,10 +337,9 @@ public class TaxonEditorInput extends CdmEntitySessionInput implements IEditorI
@Override
public boolean equals(Object obj) {
if (TaxonEditorInput.class.equals(obj.getClass())
- && getTaxonNode() != null
- && getTaxonNode().equals(((TaxonEditorInput) obj).getTaxonNode())
- ){
- if(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase() != null){
+ && getTaxon() != null
+ && getTaxon().equals(((TaxonEditorInput) obj).getTaxon())) {
+ if (((TaxonEditorInput) obj).getInitiallySelectedTaxonBase() != null){
setInitiallySelectedTaxonBase(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase());
}
return true;
@@ -456,7 +455,7 @@ public class TaxonEditorInput extends CdmEntitySessionInput implements IEditorI
@Override
public void merge() {
CdmStore.getService(ITaxonNodeService.class).merge(taxonNode, true);
-
+
}
@Override
--
2.34.1