MPTtree, Hieararchical trees in a database table |
[eluser]BDT[/eluser]
M4rw3r! I don't know this is real 'bug' but i found one error in mpttree model. In line 1341 on function move_node($lft,$nlft) you have this: Quote:$ret = array($nlft,$ret[$this->left_col]);but in line 1338 ...select($this->right_col); where you select only right_col not left_col. The CI db query is (in my system): Quote:SELECT `NavigTreeRight` FROM (`NavigTree`) WHERE `NavigTreeLeft` = '2'This Quote:$ret = array($nlft,$ret[$this->left_col])drop error message while NavigTreeLeft (left_col) index not found. When I modified Quote:$ret = array($nlft,$ret[$this->left_col])to Quote:Ci not drop error message. I like it on a granny independently because of this your class! Very-very useful!! (my work facilitates it) Sorry my bad english, I'm from Hungary and i not write english in perfect but i can read and understand it. ![]() Best regards BDT - www.bdteam.hu |
Welcome Guest, Not a member yet? Register Sign In |