Index: branches/5.1.x/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 12127) +++ branches/5.1.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 12657) @@ -1,6 +1,6 @@ Application->GetVar('cf_type'); + WHERE ItemType = ' . $this->Conn->qstr( $this->Application->GetVar('cf_type') ); $prefix = $this->Conn->GetOne($sql); } @@ -303,5 +306,4 @@ { return strcasecmp($record_a['OptionTitle'], $record_b['OptionTitle']); } - } -?> \ No newline at end of file + } \ No newline at end of file