From 18986bc31f32cad87974bcd8f5d16d67ec2d6b6a Mon Sep 17 00:00:00 2001 From: Daniel Khan Date: Tue, 27 May 2003 22:41:51 +0000 Subject: [PATCH] - Fixed a bug associated with the object return bug fixed in the last release Never touch a running system :( git-svn-id: http://svn.php.net/repository/pear/packages/DB_NestedSet/trunk@128946 c90b9560-bf6c-de11-be94-00142212c4b1 --- NestedSet.php | 1 + package.xml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/NestedSet.php b/NestedSet.php index cb7460f..6abbe08 100755 --- a/NestedSet.php +++ b/NestedSet.php @@ -1348,6 +1348,7 @@ function _moveAcross($source, $target, $pos, $copy = false) if ($pos != NESE_MOVE_BELOW) { $c_id = $this->createRightNode($t_id, $values); + $clone = $this->pickNode($c_id); if ($pos == NESE_MOVE_BEFORE) { $this->moveTree($c_id, $t_id, $pos); } diff --git a/package.xml b/package.xml index eb3749a..cf5c854 100644 --- a/package.xml +++ b/package.xml @@ -17,6 +17,7 @@ o output the tree with - PEAR::HTML_TreeMenu - TigraMenu (http://www.softcomplex.com/products/tigra_menu/) + o It also features caching of SQL queries using PEAR::Cache PHP License http://oss.webcluster.at @@ -39,7 +40,7 @@ 2003-05-25 stable - - FEATURES + - NEW FEATURES o Now $NeSe->setAttr() allows a PEAR function cache object to be passed using $NeSe->setAttr(array('cache'=>$cache_object)); if this object is set, the class will use it to cache database queries. @@ -47,6 +48,16 @@ o All tree query methods now support an additional array named $addSQL. This can be used to pass additional params to a query. Means: You may now use joins to other tables. + + - FIXES + o createRightNode() returned the node object instead of the new node id, which + caused problems whith some internal method calls. + o TreeMenu and TigraMenu output drivers contained a bug which made them not + create the whole tree under certain circumstances + Thanks to Alain Petignat for reporting this + o Some minor E_ALL fixes (The package shouldn't produce notices/warnings with + E_ALL set) + o Added TigraMenu.php to the package which was missing in the last release