Merge pull request #9789 from fliespl/patch-2
[civicrm-core.git] / api / v3 / GroupContact.php
index 2528c827cbb4254909a6bf45aff8ef2cb7d13375..53f055e82b856ee0128c2fcc367c0c8c51a7cc14 100644 (file)
@@ -158,7 +158,7 @@ function civicrm_api3_group_contact_delete($params) {
   }
   $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) {