X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGroupContact.php;h=16046437951ff89c9361d761e589592ecab4eb94;hb=5fe22fa0c0431178becb18967f4c17bfcff694bb;hp=856ad61bfeae84807c5b034bd61c22498d2648f9;hpb=63d66a39cb391e4db0f16724908f3e837c2f1c7e;p=civicrm-core.git diff --git a/api/v3/GroupContact.php b/api/v3/GroupContact.php index 856ad61bfe..1604643795 100644 --- a/api/v3/GroupContact.php +++ b/api/v3/GroupContact.php @@ -1,7 +1,7 @@ array('Added', 'Pending')); } elseif (!empty($checkParams['status']) && $checkParams['status'] == 'Added') { - $checkParams['status'] = 'Removed'; + $checkParams['status'] = array('IN' => array('Pending', 'Removed')); } elseif (!empty($checkParams['status'])) { unset($checkParams['status']); } $groupContact = civicrm_api3('GroupContact', 'get', $checkParams); if ($groupContact['count'] == 0 && !empty($params['skip_undelete'])) { - $checkParams['status'] = 'removed'; + $checkParams['status'] = array('IN' => array('Removed', 'Pending')); } $groupContact2 = civicrm_api3('GroupContact', 'get', $checkParams); if ($groupContact['count'] == 0 && $groupContact2['count'] == 0) {