Index: branches/5.2.x/units/listing_types/listing_types_event_handler.php =================================================================== diff -u -N -r14987 -r15062 --- branches/5.2.x/units/listing_types/listing_types_event_handler.php (.../listing_types_event_handler.php) (revision 14987) +++ branches/5.2.x/units/listing_types/listing_types_event_handler.php (.../listing_types_event_handler.php) (revision 15062) @@ -1,6 +1,6 @@ Application->SetVar($event->getPrefixSpecial(true).'_id', $object->GetID()); } - function OnEdit(&$event) + /** + * Prepare temp tables and populate it + * with items selected in the grid + * + * @param kEvent $event + * @return void + * @access protected + */ + protected function OnEdit(kEvent &$event) { - if ($this->Application->prefixRegistred('p')) { - $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + if ( $this->Application->prefixRegistred('p') ) { + $this->Application->recallObject('p', null, Array ('skip_autoload' => true)); } + parent::OnEdit($event); } @@ -76,7 +85,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(kEvent &$event) { parent::OnBeforeItemUpdate($event);