Index: branches/unlabeled/unlabeled-1.5.2/core/units/general/helpers/recursive_helper.php =================================================================== diff -u -r7656 -r7781 --- branches/unlabeled/unlabeled-1.5.2/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7656) +++ branches/unlabeled/unlabeled-1.5.2/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7781) @@ -90,7 +90,7 @@ $this->Conn->Query($sql); } } - + /** * Complete cloning or category with subcategories and subitems * @@ -99,14 +99,14 @@ function PasteCategory($category_id, $prefix = 'c') { $backup_category_id = $this->Application->GetVar('m_cat_id'); - + // 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); - + $id_field = $this->Application->getUnitOption($prefix, 'IDField'); $table_name = $this->Application->getUnitOption($prefix, 'TableName');