From: Effy Elden Date: Sun, 22 May 2016 07:05:38 +0000 (-0400) Subject: CRM-18523 - keeping member_id case for backwards compatibility X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5caf11194a651d2955d8310c0c681a96413e52a1;p=civicrm-core.git CRM-18523 - keeping member_id case for backwards compatibility ---------------------------------------- * CRM-18523: Search Builder fails for Membership ID https://issues.civicrm.org/jira/browse/CRM-18523 --- diff --git a/CRM/Member/BAO/Query.php b/CRM/Member/BAO/Query.php index 4fdf596738..def1576a87 100644 --- a/CRM/Member/BAO/Query.php +++ b/CRM/Member/BAO/Query.php @@ -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'); }