ref #8229: update correct property path for search in name and taxon bulkeditor
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / TaxonEditorInput.java
index de4dc9a0c0b314c522ae9751b9d4758bf53b0b61..f71a0e2ea9ab065bb621c112f7290faa111c126d 100644 (file)
@@ -101,7 +101,8 @@ public class TaxonEditorInput extends AbstractBulkEditorInput<TaxonBase>{
 //             IFindTaxaAndNamesConfigurator<TaxonBase> newConfig = new FindTaxaAndNamesConfiguratorImpl<>();\r
 //             newConfig.setTitleSearchString(configurator.getTitleSearchStringSqlized());\r
 //             newConfig.setMatchMode(MatchMode.ANYWHERE);\r
-\r
+           List<String> propertyPaths = getPropertyPaths();\r
+           configurator.setPropertyPaths(propertyPaths);\r
                List<TaxonBase> taxa =  CdmStore.getSearchManager().findTaxa(configurator);\r
                List<TaxonBase> taxaCopy = new ArrayList<TaxonBase>();\r
                for (TaxonBase taxon:taxa){\r
@@ -176,4 +177,12 @@ public class TaxonEditorInput extends AbstractBulkEditorInput<TaxonBase>{
         super.saveModel(resetMerge);\r
     }\r
 \r
+    private List<String> getPropertyPaths(){\r
+        List<String> taxonBasePropertyPaths = Arrays.asList(new String[] {\r
+        "descriptions.descriptionElements.*",\r
+        "typeDesignations"});\r
+\r
+        return taxonBasePropertyPaths;\r
+   }\r
+\r
 }\r