Compare taxon editor input based on taxon node instead of taxon
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 19 Sep 2016 10:12:56 +0000 (12:12 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 19 Sep 2016 12:39:08 +0000 (14:39 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java

index 0c223154ba6b55c5dc509a9b5da65ee7657b3480..5b5bcb9f15d390d53e3ba2a714cb6cc7204645ae 100644 (file)
@@ -337,8 +337,9 @@ public class TaxonEditorInput  extends CdmEntitySessionInput implements IEditorI
     @Override
     public boolean equals(Object obj) {
         if (TaxonEditorInput.class.equals(obj.getClass())
-                && getTaxon() != null
-                && getTaxon().equals(((TaxonEditorInput) obj).getTaxon())){
+                && getTaxonNode() != null
+                && getTaxonNode().equals(((TaxonEditorInput) obj).getTaxonNode())
+                ){
             if(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase() != null){
                 setInitiallySelectedTaxonBase(((TaxonEditorInput) obj).getInitiallySelectedTaxonBase());
             }