Index: trunk/core/units/general/helpers/recursive_helper.php =================================================================== diff -u -N -r7391 -r7635 --- trunk/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7391) +++ trunk/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7635) @@ -79,10 +79,10 @@ FROM '.$table_name.' WHERE '.$id_field.' = '.$dest_category_id; $dest_parent_path = explode('|', substr($this->Conn->GetOne($sql), 1, -1)); - + $child_categories = array_intersect($dest_parent_path, $category_ids); // get categories, then can't be moved $category_ids = array_diff($category_ids, $child_categories); // remove them from movable categories list - + if ($category_ids) { $sql = 'UPDATE '.$table_name.' SET ParentId = '.$dest_category_id.' @@ -102,6 +102,7 @@ // 1. clone category $temp_handler =& $this->Application->recallObject($prefix.'_TempHandler', 'kTempTablesHandler'); + /* @var $temp_handler kTempTablesHandler*/ $temp_handler->BuildTables($prefix, Array($category_id)); $new_category_id = array_pop( $temp_handler->CloneItems($prefix, '', Array($category_id)) ); $this->Application->SetVar('m_cat_id', $new_category_id);