Fix default mode on Contact.merge api
authoreileen <emcnaughton@wikimedia.org>
Wed, 16 Oct 2019 23:09:36 +0000 (12:09 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 16 Oct 2019 23:09:36 +0000 (12:09 +1300)
I believe this was a change I made in error & only the Contact.get_merge_conflicts api should
receive an array for 'mode'. The mode is part of a loop within that api

api/v3/Contact.php

index bcaa9954cc8b0fd69302347da3932079c93408b0..200605bdc87b75e8f935825a60cb19b5d8031a4c 100644 (file)
@@ -1195,7 +1195,7 @@ function _civicrm_api3_contact_merge_spec(&$params) {
   $params['mode'] = [
     'title' => ts('Dedupe mode'),
     'description' => ts("In 'safe' mode conflicts will result in no merge. In 'aggressive' mode the merge will still proceed (hook dependent)"),
-    'api.default' => ['safe', 'aggressive'],
+    'api.default' => 'safe',
     'options' => ['safe' => ts('Abort on unhandled conflict'), 'aggressive' => ts('Proceed on unhandled conflict. Note hooks may change handling here.')],
   ];
 }