the preselected classification in taxonnodeselection dialog should be the actual one
authorKatja Luther <k.luther@bgbm.org>
Mon, 4 Dec 2017 08:42:13 +0000 (09:42 +0100)
committerKatja Luther <k.luther@bgbm.org>
Mon, 4 Dec 2017 08:42:13 +0000 (09:42 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TaxonNodeSelectionDialog.java

index 0d38e9e89990133b4ec3bc9888ab53e4c869b380..b25f02f1ff1b6576810cf907c9204df4a9bcd77d 100644 (file)
@@ -148,10 +148,12 @@ public class TaxonNodeSelectionDialog extends AbstractFilteredCdmResourceSelecti
                     return result;
                 }
             });
-                       if (this.cdmBaseToBeFiltered == null){
-                           selectedClassification = classifications.iterator().next();
-                       } else {
+                       if (selectedClassification == null){
+                           if (this.cdmBaseToBeFiltered == null){
+                               selectedClassification = classifications.iterator().next();
+                           } else {
                            selectedClassification = this.cdmBaseToBeFiltered.getClassification();
+                           }
                        }
                }
     }