Index: trunk/core/units/categories/categories_event_handler.php =================================================================== diff -u -N -r7635 -r7855 --- trunk/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 7635) +++ trunk/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 7855) @@ -11,6 +11,8 @@ parent::mapPermissions(); $permissions = Array( 'OnRebuildCache' => Array('self' => 'add|edit'), + 'OnPasteClipboard' => Array('self' => 'add|edit'), + 'OnPaste' => array('self'=>'add|edit', 'subitem' => 'edit'), // 'OnSave' => Array('self' => 'add|edit') ); $this->permMapping = array_merge($this->permMapping, $permissions); @@ -98,7 +100,7 @@ // hide categories with status = 4 (system categories) $object->addFilter('system_categories', '%1$s.Status <> 4'); - if ( $event->getEventParam('parent_cat_id') ) { + if ($event->getEventParam('parent_cat_id') !== false) { $parent_cat_id = $event->getEventParam('parent_cat_id'); if ($parent_cat_id == 'Root') { @@ -347,7 +349,7 @@ if ($id == 0) { if ($temp_object->isLoaded()) { - // new category -> update chache (not loaded when "Home" category) + // new category -> update cache (not loaded when "Home" category) $this->Application->StoreVar('PermCache_UpdateRequired', 1); } return ; @@ -357,7 +359,7 @@ $live_object =& $this->Application->recallObject($event->Prefix.'.-item', null, Array('live_table' => true, 'skip_autoload' => true)); $live_object->Load($id); - $cached_fields = Array('Name', 'Filename', 'CategoryTemplate', 'ParentId'); + $cached_fields = Array('Name', 'Filename', 'CategoryTemplate', 'ParentId', 'Priority'); foreach ($cached_fields as $cached_field) { if ($live_object->GetDBField($cached_field) != $temp_object->GetDBField($cached_field)) {