#5010 : Initial commit to fix duplicate entry issue when creating new key node
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / key / polytomous / PolytomousKeyEditorInput.java
index 31eecc36aa100a2a4b38d59315ad267fcc915990..a6555ce7d01e3f5ff8266f33ac90ed98995984f6 100644 (file)
@@ -21,7 +21,7 @@ public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<
 
     private final String name;
     private final UUID keyUuid;
-    private final PolytomousKey key;
+    private PolytomousKey key;
 
 
     protected PolytomousKeyEditorInput(ConversationHolder conversation,
@@ -89,7 +89,7 @@ public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<
      */
     @Override
     public void merge() {
-        CdmStore.getService(IPolytomousKeyService.class).merge(key);
+        key = CdmStore.getService(IPolytomousKeyService.class).merge(key);
     }
 
 }