CRM-18523 - keeping member_id case for backwards compatibility
authorEffy Elden <git@effy.is>
Sun, 22 May 2016 07:05:38 +0000 (03:05 -0400)
committerEffy Elden <git@effy.is>
Sun, 22 May 2016 07:05:38 +0000 (03:05 -0400)
----------------------------------------
* CRM-18523: Search Builder fails for Membership ID
  https://issues.civicrm.org/jira/browse/CRM-18523

CRM/Member/BAO/Query.php

index 4fdf5967389f8b76cba72967e56af79b5a3178c8..def1576a87e90a079380b96c5c20e00d8fdff57b 100644 (file)
@@ -222,13 +222,14 @@ class CRM_Member_BAO_Query {
           $value = array('IN' => explode(',', $value));
         }
       case 'membership_id':
+      case 'member_id': // CRM-18523 Updated to membership_id but kept member_id case for backwards compatibility
       case 'member_campaign_id':
 
         if (strpos($name, 'status') !== FALSE) {
           $name = 'status_id';
           $qillName = ts('Membership Status');
         }
-        elseif ($name == 'membership_id') {
+        elseif ($name == 'membership_id' || $name == 'member_id') {
           $name = 'id';
           $qillName = ts('Membership ID');
         }