Index: trunk/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r2071 -r2079 --- trunk/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 2071) +++ trunk/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 2079) @@ -13,11 +13,6 @@ $object =& $event->getObject(); $item_type=$this->Application->GetVar('cf_type'); - /*if(!$item_type) - { - $parent_info = $object->getLinkedInfo(); - $item_type = $this->Application->getUnitOption($parent_info['ParentPrefix'], 'ItemType'); - }*/ $object->addFilter('itemtype_filter', '%1$s.Type = '.$item_type); //$object->AddOrderField('DisplayOrder', 'ASC'); } @@ -42,7 +37,7 @@ $object->FieldErrors['FieldName']['pseudo'] = $this->Application->Phrase('la_error_CustomExists'); } else { - $item_type = $this->Application->GetVar('cf_type'); + $item_type=$this->Application->GetVar('cf_type'); $object->SetDBField('Type', $this->Application->GetVar('cf_type')); }