Index: branches/5.2.x/core/units/config_search/config_search_event_handler.php =================================================================== diff -u -N -r16022 -r16513 --- branches/5.2.x/core/units/config_search/config_search_event_handler.php (.../config_search_event_handler.php) (revision 16022) +++ branches/5.2.x/core/units/config_search/config_search_event_handler.php (.../config_search_event_handler.php) (revision 16513) @@ -1,6 +1,6 @@ getObject(); - /* @var $object kDBList */ // show only items that belong to selected module $module = $this->Application->GetVar('module'); @@ -107,16 +107,16 @@ */ protected function OnCreateCustomField($event) { + /** @var kDBItem $custom_field */ $custom_field = $event->MasterEvent->getObject(); - /* @var $custom_field kDBItem */ if ( $custom_field->GetDBField('Type') == 6 || $custom_field->GetDBField('IsSystem') == 1 ) { // user & system custom fields are not searchable return ; } + /** @var kDBItem $object */ $object = $event->getObject(Array ('skip_autoload' => true)); - /* @var $object kDBItem */ $custom_id = $custom_field->GetID(); if ( !$object->isLoaded() || ($object->GetDBField('CustomFieldId') != $custom_id) ) {