return;
case 'member_test':
- // We dont want to include all tests for sql OR CRM-7827
+ // We don't want to include all tests for sql OR CRM-7827
if (!$value || $query->getOperator() != 'OR') {
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_membership.is_test", $op, $value, "Boolean");
if ($value) {
),
"Integer");
$query->_qill[$grouping][] = ts("Membership is Auto-Renew and In Progress");
- }
+ }
elseif ($value == 3) {
$query->_where[$grouping][] = " civicrm_membership.contribution_recur_id IS NOT NULL";
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause(
),
"Integer");
$query->_qill[$grouping][] = ts("Membership is Auto-Renew and Failed");
- }
+ }
elseif ($value == 4) {
$query->_where[$grouping][] = " civicrm_membership.contribution_recur_id IS NOT NULL";
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause(
"Integer"
);
$query->_qill[$grouping][] = ts("Membership is Auto-Renew and Cancelled");
- }
+ }
elseif ($value == 5) {
$query->_where[$grouping][] = " civicrm_membership.contribution_recur_id IS NOT NULL";
$query->_where[$grouping][] = " ccr.end_date IS NOT NULL AND ccr.end_date < NOW()";