From 82a51e0a75946fcf7c2a0021a6d7fa8b2334ff63 Mon Sep 17 00:00:00 2001 From: Effy Elden Date: Sat, 21 May 2016 05:12:25 -0400 Subject: [PATCH] CRM-18523 - Search Builder - Fix searching on Membership ID ---------------------------------------- * CRM-18523: Search Builder fails for Membership ID https://issues.civicrm.org/jira/browse/CRM-18523 --- CRM/Member/BAO/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Member/BAO/Query.php b/CRM/Member/BAO/Query.php index 569bb0e101..4fdf596738 100644 --- a/CRM/Member/BAO/Query.php +++ b/CRM/Member/BAO/Query.php @@ -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'); } -- 2.25.1