From: Effy Elden Date: Sat, 21 May 2016 09:12:25 +0000 (-0400) Subject: CRM-18523 - Search Builder - Fix searching on Membership ID X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82a51e0a75946fcf7c2a0021a6d7fa8b2334ff63;p=civicrm-core.git 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 --- 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'); }