if ($this->_aclWhere) {
$clauses[] = " {$this->_aclWhere} ";
}
-
return implode(' AND ', $clauses);
}
public function where($includeContactIDs = FALSE) {
if ($whereClause = $this->_query->whereClause()) {
if ($this->_aclWhere) {
- $whereCluase .= " AND {$this->_aclWhere} ";
+ $whereClause .= " AND {$this->_aclWhere} AND contact_a.is_deleted = 0";
}
return $whereClause;
}
$dao = CRM_Core_DAO::executeQuery($query);
$sql = "SELECT contact_a.id as contact_id FROM CustomSearch_SYBNT_temp as contact_a";
}
-
return $sql;
}
$clauses[] = "contrib.financial_type_id IN ($financial_type_ids)";
}
if ($this->_aclWhere) {
- return " {$this->_aclWhere} " . implode(' AND ', $clauses);
- }
- else {
- return implode(' AND ', $clauses);
+ $clauses[] = " {$this->_aclWhere} ";
}
+
+ return implode(' AND ', $clauses);
}
/**
public function where($includeContactIDs = FALSE) {
$where = '(1)';
if ($this->_aclWhere) {
- $where = " AND {$this->_aclWhere} ";
+ $where .= " AND {$this->_aclWhere} ";
+ $where .= " AND contact_a.is_deleted = 0";
}
return $where;
}
$clause[] = "cgc.group_id = {$this->_group}";
}
if ($this->_aclWhere) {
- $clause[] = " AND {$this->_aclWhere} ";
+ $clause[] = " {$this->_aclWhere} AND contact_a.is_deleted = 0";
}
$where = '( 1 )';
$where .= ' AND ' . implode(' AND ', $clause);
}
- $where .= "{$this->_where} ";
-
return $this->whereClause($where, $params);
}
public function where($includeContactIDs = FALSE) {
$where = ' ( 1 ) ';
if ($this->_aclWhere) {
- $where = " AND {$this->_aclWhere} ";
+ $where .= " AND {$this->_aclWhere} ";
}
return $where;
}
}
$where .= " AND contact_a.is_deleted != 1 ";
- $where .= "{$this->_where}";
if ($this->_aclWhere) {
$where .= " AND {$this->_aclWhere} ";
$where = '(1)';
if ($this->_aclWhere) {
- $where = " AND {$this->_aclWhere} ";
+ $where .= " AND {$this->_aclWhere} ";
}
return '(1)';
public function where($includeContactIDs = FALSE) {
$params = array();
$where = "contact_a.contact_type = 'Household'";
- $where .= "{$this->_where}";
$count = 1;
$clause = array();
}
if ($this->_aclWhere) {
- $clause[] = " AND {$this->_aclWhere} ";
+ $clause[] = " {$this->_aclWhere} ";
}
if (!empty($clause)) {
);
if ($this->_aclWhere) {
- $where .= " AND {$this->_aclWhere} ";
+ $where .= " AND {$this->_aclWhere} AND contact_a.is_deleted = 0";
}
-
return $this->whereClause($where, $params);
}