Index: trunk/core/units/configuration/configuration_event_handler.php =================================================================== diff -u -N -r4758 -r6093 --- trunk/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 4758) +++ trunk/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 6093) @@ -171,26 +171,16 @@ $event->redirect_params = Array('opener' => 's', 'pass'=>'all,conf'); //stay! $event->redirect = false; }*/ - + /** - * Allows to process module root category selection + * Process items from selector (selected_ids var, key - prefix, value - comma separated ids) * * @param kEvent $event */ - function OnSelectItems(&$event) + function OnProcessSelected(&$event) { - $object =& $event->getObject( Array('skip_autoload' => true) ); - - $items_info = $this->Application->GetVar('c'); - list($resource_id, $field_values) = each($items_info); - - if ($resource_id) { - $sql = 'SELECT CategoryId - FROM '.TABLE_PREFIX.'Category - WHERE ResourceId = '.$resource_id; - $category_id = $this->Conn->GetOne($sql); - $this->Application->StoreVar('ModuleRootCategory', $category_id); - } + $selected_ids = $this->Application->GetVar('selected_ids'); + $this->Application->StoreVar('ModuleRootCategory', $selected_ids['c']); $this->finalizePopup($event); }