Index: trunk/core/units/general/cat_event_handler.php =================================================================== diff -u -N -r4708 -r4709 --- trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 4708) +++ trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 4709) @@ -13,8 +13,9 @@ { parent::mapPermissions(); $permissions = Array( - 'OnExport' => Array('self' => 'view|advanced:export'), - 'OnExportBegin' => Array('self' => 'view|advanced:export'), + 'OnExport' => Array('self' => 'view|advanced:export'), + 'OnExportBegin' => Array('self' => 'view|advanced:export'), + 'OnSaveSettings' => Array('self' => 'add|edit|advanced:import'), ); $this->permMapping = array_merge($this->permMapping, $permissions); } @@ -30,7 +31,12 @@ // save category_id before doing export $this->Application->LinkVar('m_cat_id'); } - + + if ($event->Name == 'OnNew' && preg_match('/(.*)\/import$/', $this->Application->GetVar('t'), $rets)) { + // redirect to item import template, where permission (import) category will be chosen) + $this->Application->StoreVar('m_cat_id', $this->Application->findModule('Path', $rets[1].'/', 'RootCat')); + } + return parent::CheckPermission($event); }