CRM-18523 - Search Builder - Fix searching on Membership ID
authorEffy Elden <git@effy.is>
Sat, 21 May 2016 09:12:25 +0000 (05:12 -0400)
committerEffy Elden <git@effy.is>
Sat, 21 May 2016 09:12:25 +0000 (05:12 -0400)
----------------------------------------
* CRM-18523: Search Builder fails for Membership ID
  https://issues.civicrm.org/jira/browse/CRM-18523

CRM/Member/BAO/Query.php

index 569bb0e1015c5456089ab9042b088b310d3e53e5..4fdf5967389f8b76cba72967e56af79b5a3178c8 100644 (file)
@@ -221,14 +221,14 @@ class CRM_Member_BAO_Query {
         if (is_string($value) && strpos($value, ',') && $op == '=') {
           $value = array('IN' => explode(',', $value));
         }
-      case 'member_id':
+      case 'membership_id':
       case 'member_campaign_id':
 
         if (strpos($name, 'status') !== FALSE) {
           $name = 'status_id';
           $qillName = ts('Membership Status');
         }
-        elseif ($name == 'member_id') {
+        elseif ($name == 'membership_id') {
           $name = 'id';
           $qillName = ts('Membership ID');
         }