Show better text when executing the search
authorFranky Van Liedekerke <liedekef@localhost.localdomain>
Tue, 25 Oct 2016 20:21:51 +0000 (22:21 +0200)
committerFranky Van Liedekerke <liedekef@localhost.localdomain>
Tue, 25 Oct 2016 20:21:51 +0000 (22:21 +0200)
CRM/Member/BAO/Query.php

index 58dd377070eb02d5cae88349f5efdb80be95cd91..7a7cf84018b087eff7bd809e0a61b8d73f90b5d9 100644 (file)
@@ -261,7 +261,7 @@ class CRM_Member_BAO_Query {
       case 'membership_is_current_member':
         // We don't want to include all tests for sql OR CRM-7827
         $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_membership_status.is_current_member", $op, $value, "Boolean");
-        $query->_qill[$grouping][] = ts('Active Member');
+        $query->_qill[$grouping][] = ts('Is an %1 Member', array(1  => $value ? 'Active' : 'Inactive'));
         $query->_tables['civicrm_membership_status'] = $query->_whereTables['civicrm_membership_status'] = 1;
         return;