Re: DB_NestedSet not updating parent id properly
| From: | Daniel Khan | Date: | Sat, 22 Nov 2003 02:01:12 +0000 |
| Subject: | Re: DB_NestedSet not updating parent id properly | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23809@lists.php.net to get a copy of this message | ||
Andy Crain wrote:
I think this might be a small bug. Please let me know if I'm wrong. NestedSet fails to update the parent id for a node when the node is moved-i.e. when calling moveTree(). This will occur only for those who have and pass a parameter for a parent field in their nodes table. Currently the node, once moved, retains its former parent id value, while it should take on the parent id of its new parent node. This will not change ATM cause the parent field is new and only a feature.So I can't mark it as required (old installs don't have it). If the user doesn't pass this param it should work as expected(?) or my tests are wrong. I agree that this should be solved. But it's not possible because of BC issues. Please let me know if you think I'm worng. Thanks a lot! -- Daniel Khan