Index: branches/unlabeled/unlabeled-1.34.2/core/units/general/cat_dbitem.php =================================================================== diff -u -r7532 -r7579 --- branches/unlabeled/unlabeled-1.34.2/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 7532) +++ branches/unlabeled/unlabeled-1.34.2/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 7579) @@ -156,6 +156,10 @@ $original_checked = true; } while ($res !== false); $this->SetDBField($title_field, $new_name); + + // this is needed, because Create will create items in its own CategoryId (if it's set), + // but we need to create it in target Paste category @see{kCatDBItem::Create} and its primary_category detection + $this->SetDBField('CategoryId', $cat_id); } function MoveToCat($cat_id=null)