Index: trunk/core/units/modules/modules_event_handler.php =================================================================== diff -u -r4625 -r4758 --- trunk/core/units/modules/modules_event_handler.php (.../modules_event_handler.php) (revision 4625) +++ trunk/core/units/modules/modules_event_handler.php (.../modules_event_handler.php) (revision 4758) @@ -12,8 +12,8 @@ { $this->Application->SetVar($event->getPrefixSpecial(true).'_id', $event->Special); parent::OnItemBuild($event); - } - + } + /** * List with one record if special passed * @@ -26,14 +26,14 @@ $object->addFilter('current_module', 'Name = '.$event->Special); } } - + function mapEvents() { parent::mapEvents(); $this->eventMethods['OnMassApprove'] = 'moduleAction'; $this->eventMethods['OnMassDecline'] = 'moduleAction'; } - + /** * Disabled modules, but not In-Portal * @@ -44,13 +44,13 @@ if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { return; } - + $object =& $event->getObject( Array('skip_autoload' => true) ); $ids = $this->StoreSelectedIDs($event); - - + + if (!$ids) return true; - + $status_field = array_shift( $this->Application->getUnitOption($event->Prefix, 'StatusField') ); foreach($ids as $id) @@ -69,10 +69,11 @@ break; } } - + + $this->Application->UnitConfigReader->ResetParsedData(true); //true to reset sections cache also $event->SetRedirectParam('RefreshTree', 1); } - + } ?> \ No newline at end of file