AD7six wrote:
> Are there any missing or duplicate numbers in the lft & rght fields
> after the demotion. If the same number appears in either field, the
> tree has been corrupted; if there is a gap it has been corrupted.

It doesn't seems so. However I've left this approach as the one
described by nate (the great :)) in the ticket.

> set the parent to null (or anything not under the current parent) and
> then set the parent to the node that you want. Assuming that you are
> looking for a working solution rather than hacking/fixing the core to
> get it perfect.

Yes as I was saying just some lines aboves, here is the solutions

   if($this->Aro->setParent(null,$alias)){
      if($this->Aro->setParent($group,$alias)){
         //yo baby!
      }else{
         //manage error
      }
   }else{
      //manage error
   }

Thanks a lot
Bye
Davide

-- 
By the power of Greyskull...

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to