// note : this modifies _fromClause and _simpleFromClause
$this->_sort = $sort;
- $this->includePseudoFieldsJoin($sort);
list($select, $from, $where, $having) = $this->query($count, $sortByChar, $groupContacts, $onlyDeleted);
//CRM-15231
$this->_fromClause = self::fromClause($this->_tables, NULL, NULL, $this->_primaryLocation, $this->_mode);
$this->_simpleFromClause = self::fromClause($this->_whereTables, NULL, NULL, $this->_primaryLocation, $this->_mode);
- if (!empty($_GET['crmSID'])) {
- $this->includePseudoFieldsJoin($this->_sort);
- }
+ $this->includePseudoFieldsJoin($this->_sort);
}
}
else {