CRM-17022 fix - Bug introduced in 4.6.6 breaks Grant Search
[civicrm-core.git] / CRM / Activity / Form / Search.php
index c58751dfa4a6f7b7996339c3802c6a6db362747c..fa0a9db5d8a95d13d35052723dcc0a28c5a15e8c 100644 (file)
@@ -211,9 +211,8 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search {
           if (is_array($value)) {
             if ($element == 'status_id') {
               unset($this->_formValues[$element]);
-              $element = 'activity_' . $element;
+              $this->_formValues['activity_' . $element] = $value;
             }
-            $this->_formValues[$element] = array('IN' => $value);
           }
           else {
             $this->_formValues[$element] = array('LIKE' => "%$value%");