bind session when changing already opened name editor
authorKatja Luther <k.luther@bgbm.org>
Fri, 8 Dec 2017 10:58:02 +0000 (11:58 +0100)
committerKatja Luther <k.luther@bgbm.org>
Tue, 12 Dec 2017 08:22:29 +0000 (09:22 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java

index 96ea0b6937ac7f00611dad831b1abf211b5518ed..0c5ba838d78916278bd3597c77bebfbac9a1d900 100644 (file)
@@ -226,12 +226,14 @@ public class TaxonNameEditorE4 implements IConversationEnabled, IDirtyMarkable,
         if(conversation!=null && !conversation.isBound()){
             conversation.bind();
         }
+
            if(input!=null){
                if (getSelectedContainer() == null) {
                    throw new IllegalStateException(
                            Messages.TaxonNameEditor_THERE_SHOULD_ALWAYS_BE);
                }
                getSelectedContainer().setSelected();
+               input.bind();
 
                // check permissions
                boolean doEnable = permissionsSatisfied();
@@ -340,7 +342,9 @@ public class TaxonNameEditorE4 implements IConversationEnabled, IDirtyMarkable,
            monitor.beginTask(Messages.TaxonNameEditor_SAVING_NAMES, getGroupedContainers().size());
            if (!conversation.isBound()) {
                conversation.bind();
+
            }
+           conversation.commit(true);
            monitor.worked(1);
 
            // check for empty names