Index: branches/unlabeled/unlabeled-1.22.2/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r5618 -r5620 --- branches/unlabeled/unlabeled-1.22.2/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 5618) +++ branches/unlabeled/unlabeled-1.22.2/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 5620) @@ -372,9 +372,19 @@ */ function OnPaste(&$event) { - echo 'performs category paste'; - $event->redirect = false; + if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + return; + } + + + if ($ids) { + $recursive_helper =& $this->Application->recallObject('RecursiveHelper'); + foreach ($ids as $id) { + $recursive_helper->DeleteCategory($id); + } + } + $this->clearSelectedIDs($event); /*$ids = $this->Application->RecallVar($event->getPrefixSpecial().'_clipboard'); if ($ids == '') {