Index: branches/5.0.x/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r12299 -r12511 --- branches/5.0.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 12299) +++ branches/5.0.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 12511) @@ -1,6 +1,6 @@ Application->GetVar('cf_type'); + WHERE ItemType = ' . $this->Conn->qstr( $this->Application->GetVar('cf_type') ); $prefix = $this->Conn->GetOne($sql); }