Dedupe rule PHP notice for custom fields
When using custom fields in a dedupe rule a PHP notice can be thrown. This is because this line:
... passes in the table column name, to look up the type (eg: foo_bar_102), but the key in the fields list from getfields API call is the 'custom_' version (eg: custom_102).
This results in:
Notice: Undefined index: foo_bar_102 in CRM_Dedupe_BAO_Rule->sql() (line 85 of .../civicrm/CRM/Dedupe/BAO/Rule.php).
This doesn't normally have an impact because the 'else' clause kicks in instead, defaulting to a text string search. But it looks like it would break dedupe rules that have a date field type.