Merge pull request #6360 from monishdeb/search-fixes-master
authorKurund Jalmi <kurund@civicrm.org>
Tue, 8 Sep 2015 09:46:51 +0000 (15:16 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Tue, 8 Sep 2015 09:46:51 +0000 (15:16 +0530)
CRM-16941 - Search Form and api.Get fixes for Contact

1  2 
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/GroupContactCache.php
CRM/Contact/BAO/Query.php
CRM/Contact/Form/Search/Advanced.php
CRM/Contact/Form/Search/Basic.php
CRM/Contact/Form/Search/Builder.php
CRM/Contact/Form/Search/Criteria.php
CRM/Contact/Selector.php
CRM/Core/BAO/Mapping.php

Simple merge
Simple merge
index 863ea6fafa1ff6789a7965ccc6659e280e6decd5,5b9fbc2e9e46061cf227f76e036765d31a13367f..351b3dc6d2c8e2ccf5c387ac4aee11ecbc5c81f4
@@@ -2792,17 -2754,8 +2744,8 @@@ class CRM_Contact_BAO_Query 
      $isSmart = FALSE;
      $isNotOp = ($op == 'NOT IN' || $op == '!=');
  
-     if ($value) {
-       if (strpos($op, 'IN') === FALSE) {
-         $value = key($value);
-       }
-       else {
-         $value = array_keys($value);
-       }
-     }
      $statii = array();
 -    $gcsValues = &$this->getWhereValues('group_contact_status', $grouping);
 +    $gcsValues = $this->getWhereValues('group_contact_status', $grouping);
      if ($gcsValues &&
        is_array($gcsValues[2])
      ) {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge