Project

General

Profile

« Previous | Next » 

Revision 5df69434

Added by Katja Luther about 8 years ago

minor

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonNode.java
612 612

  
613 613
        Classification classification = parent.getClassification();
614 614
        //FIXME also set the tree index here for performance reasons
615
        classification = HibernateProxyHelper.deproxy(classification, Classification.class);
615 616
        setClassificationRecursively(classification);
616 617

  
617 618
        // add this node to the parent's child nodes
619
        parent = HibernateProxyHelper.deproxy(parent, TaxonNode.class);
618 620
        List<TaxonNode> parentChildren = parent.getChildNodes();
619 621
       //TODO: Only as a workaround. We have to find out why merge creates null entries.
620 622
        while (parentChildren.contains(null)){
621 623
            parentChildren.remove(null);
622 624
        }
623
        this.updateSortIndex(0);
625
        parent.updateSortIndex(0);
624 626
        if (parentChildren.contains(this)){
625 627
            //avoid duplicates
626 628
            if (parentChildren.indexOf(this) < index){

Also available in: Unified diff