'join' => self::getJoinOnDedupeTable(),
'where' => self::getWhereString($batchLimit, $isSelected),
);
- return CRM_Dedupe_Merger::merge($dupePairs, $cacheParams, $mode, $autoFlip, $redirectForPerformance, $checkPermissions);
+ return CRM_Dedupe_Merger::merge($dupePairs, $cacheParams, $mode, $redirectForPerformance, $checkPermissions);
}
/**
* Helps decide how to behave when there are conflicts.
* A 'safe' value skips the merge if there are any un-resolved conflicts.
* Does a force merge otherwise (aggressive mode).
- * @param bool $autoFlip to let api decide which contact to retain and which to delete.
- * Whether to let api decide which contact to retain and which to delete.
*
* @param bool $redirectForPerformance
* Redirect to a url for batch processing.
* @return array|bool
*/
public static function merge($dupePairs = array(), $cacheParams = array(), $mode = 'safe',
- $autoFlip = TRUE, $redirectForPerformance = FALSE, $checkPermissions = TRUE
+ $redirectForPerformance = FALSE, $checkPermissions = TRUE
) {
$cacheKeyString = CRM_Utils_Array::value('cache_key_string', $cacheParams);
$resultStats = array('merged' => array(), 'skipped' => array());
'srcID' => $params['to_remove_id'],
'dstID' => $params['to_keep_id'],
),
- ), array(), $params['mode'], $params['auto_flip'])) != FALSE) {
+ ), array(), $params['mode'])) != FALSE) {
return civicrm_api3_create_success($result, $params);
}
throw new CiviCRM_API3_Exception('Merge failed');
'type' => CRM_Utils_Type::T_INT,
'api.aliases' => array('other_id'),
);
- $params['auto_flip'] = array(
- 'title' => 'Swap destination and source to retain lowest id?',
- 'api.default' => TRUE,
- );
$params['mode'] = array(
// @todo need more detail on what this means.
'title' => 'Dedupe mode',