Fixes #2359
authorn.hoffmann <n.hoffmann@localhost>
Mon, 6 Jun 2011 09:54:55 +0000 (09:54 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 6 Jun 2011 09:54:55 +0000 (09:54 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java

index e5de8074f8c817bdd7dc8cfe63f4d0c6fa364d72..0240d1caab934585ce2d84af9084b2ffece37547 100644 (file)
@@ -233,6 +233,8 @@ public class TaxonNodeDetailElement extends AbstractCdmDetailElement<ITreeNode>
                        selection_classification.setEntity(classification);
                        selection_parentTaxonNode.setEntity((TaxonNode) parentTreeNode);
                        selection_parentTaxonNode.setClassification(classification);
                        selection_classification.setEntity(classification);
                        selection_parentTaxonNode.setEntity((TaxonNode) parentTreeNode);
                        selection_parentTaxonNode.setClassification(classification);
+               } else if(parentTreeNode == null){
+                       this.parentTreeNode = selection_classification.getEntity();                     
                }
        }
 
                }
        }