AND used = %2";
$queryParams = array(
1 => array($this->_contactType, 'String'),
- 2 => array($this->_options[$used], 'String'),
+ 2 => array($values['used'], 'String'),
);
CRM_Core_DAO::executeQuery($query, $queryParams);
// also create an index for this dedupe rule
// CRM-3837
+ CRM_Utils_Hook::dupeQuery($ruleDao, 'dedupeIndexes', $tables);
CRM_Core_BAO_SchemaHandler::createIndexes($tables, 'dedupe_index', $substrLenghts);
//need to clear cache of deduped contacts