Index: trunk/kernel/units/custom_values/custom_value_event_handler.php =================================================================== diff -u -r1795 -r2071 --- trunk/kernel/units/custom_values/custom_value_event_handler.php (.../custom_value_event_handler.php) (revision 1795) +++ trunk/kernel/units/custom_values/custom_value_event_handler.php (.../custom_value_event_handler.php) (revision 2071) @@ -2,13 +2,13 @@ class CustomValuesEventHandler extends InpDBEventHandler { - function SetCustomQuery(&$event) { $object =& $event->getObject(); - $top_prefix = $this->Application->GetTopmostPrefix($event->Prefix); - $item_type = $this->Application->getUnitOption($top_prefix, 'ItemType'); + $parent_info = $object->getLinkedInfo(); + // $top_prefix = $this->Application->GetTopmostPrefix($event->Prefix); + $item_type = $this->Application->getUnitOption($parent_info['ParentPrefix'], 'ItemType'); $item_resource_id = $this->GetParentResourceId($event);