Index: trunk/core/units/general/helpers/recursive_helper.php =================================================================== diff -u -N -r7635 -r7855 --- trunk/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7635) +++ trunk/core/units/general/helpers/recursive_helper.php (.../recursive_helper.php) (revision 7855) @@ -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');