add the sec reference of the parent to the new created taxon node
authork.luther <k.luther@BGBM11732.bgbm.fu-berlin.de>
Wed, 3 Feb 2016 09:49:35 +0000 (10:49 +0100)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Wed, 3 Feb 2016 13:59:37 +0000 (14:59 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java

index 037e7c75b273fab57cb75a446d55be2c28fe7008..78364f887c609683976670c83fa32bb93b28924d 100644 (file)
@@ -274,8 +274,8 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<ITaxonTreeN
        private void setTaxon(TaxonNameBase taxonName) {
                Reference secundum = null;
                if (getParentTreeNode() != null) {
-                       if (this.secReference != null){
-                               secundum = this.secReference;
+                       if (this.selection_SecRef.getEntity() != null){
+                               secundum = this.selection_SecRef.getEntity();
                        } /*else if (getParentTreeNode() instanceof Classification) {
                                secundum = ((Classification) getParentTreeNode())
                                                .getReference();