ref #8041 Store protected flag when creating a new feature tree
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 7 Feb 2019 10:07:35 +0000 (11:07 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 7 Feb 2019 10:07:42 +0000 (11:07 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureTreeSelectionDialog.java

index ca287fdcf239d82bb0b4e360f35e099c51450315..93f39f494eea1e593bb420bf6798bd68ed9fa72c 100644 (file)
@@ -65,8 +65,8 @@ public class FeatureTreeSelectionDialog extends
                 if (dialog.open() == Window.OK) {
                     // User clicked OK; update the label with the input
                     FeatureTree tree = FeatureTree.NewInstance();
-                    CdmStore.getService(IFeatureTreeService.class).merge(tree,true);
                     tree.setTitleCache(dialog.getValue(), true);
+                    CdmStore.getService(IFeatureTreeService.class).merge(tree,true);
                     refresh();
                     setPattern(tree);
                   }