bind cdmSession before save in BulkdEditor
authorKatja Luther <k.luther@bgbm.org>
Wed, 13 Dec 2017 09:19:00 +0000 (10:19 +0100)
committerKatja Luther <k.luther@bgbm.org>
Wed, 13 Dec 2017 09:19:00 +0000 (10:19 +0100)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java

index 6f14ecbbbc2bf9ac6e8b0c8dbb215433d237426e..b1cfbc65fed95c94c504c7260a09ce02c0d27df5 100644 (file)
@@ -204,7 +204,9 @@ public class BulkEditorE4 implements IPartContentHasDetails, IConversationEnable
        }
 
        public void save(IProgressMonitor monitor, boolean resetMerge) {
-
+           if (!input.getCdmEntitySession().isActive()){
+            input.getCdmEntitySession().bind();
+        }
            input.saveModel(resetMerge);
 
            // commit the conversation and start a new transaction immediately