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