X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGroupContact.php;h=16046437951ff89c9361d761e589592ecab4eb94;hb=5fe22fa0c0431178becb18967f4c17bfcff694bb;hp=50378c1d96fe464d2885dccc734935d93f82a5d4;hpb=87b743322324b0c46aa1cc70b2ce971846bf87e3;p=civicrm-core.git diff --git a/api/v3/GroupContact.php b/api/v3/GroupContact.php index 50378c1d96..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) {