ref #7086 Protect titleCache for new working sets
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 1 Dec 2017 10:10:36 +0000 (11:10 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 1 Dec 2017 10:10:55 +0000 (11:10 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureTreeSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/WorkingSetSelectionDialog.java

index f5be32fabb49a76d78073dd5c08c12d9f84fb333..3aeca6e06687787703e5d0268c1e8876916b470c 100644 (file)
@@ -80,7 +80,7 @@ public class FeatureTreeSelectionDialog extends
                     // User clicked OK; update the label with the input
                     FeatureTree tree = FeatureTree.NewInstance();
                     CdmStore.getService(IFeatureTreeService.class).merge(tree,true);
-                    tree.setTitleCache(dialog.getValue());
+                    tree.setTitleCache(dialog.getValue(), true);
                     refresh();
                     setPattern(tree);
                   }
index 9bd42eed4e4656d585e2ade09a2bf42630ea6f20..edf110b0853565cdbe753ffd39d7749ee163121d 100644 (file)
@@ -109,7 +109,7 @@ AbstractFilteredCdmResourceSelectionDialog<WorkingSet> {
                     WorkingSet workingSet = WorkingSet.NewInstance();
                     CdmStore.getService(IWorkingSetService.class).merge(workingSet,true);
                     workingSet.setLabel(dialog.getValue());
-                    workingSet.setTitleCache(dialog.getValue());
+                    workingSet.setTitleCache(dialog.getValue(), true);
                     refresh();
                     setPattern(workingSet);
                   }