From 5caf11194a651d2955d8310c0c681a96413e52a1 Mon Sep 17 00:00:00 2001 From: Effy Elden Date: Sun, 22 May 2016 03:05:38 -0400 Subject: [PATCH] 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 --- CRM/Member/BAO/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } -- 2.25.1