Skip to content
Snippets Groups Projects
Commit bbce9d40 authored by lobo's avatar lobo
Browse files

CRM-13745 - fix mysql exception

----------------------------------------
* CRM-13745: CRM_Contact_Form_Search_Custom_FullText: broken links from search results
  http://issues.civicrm.org/jira/browse/CRM-13745
parent ee581271
Branches
Tags
No related merge requests found
......@@ -838,10 +838,16 @@ WHERE (c.sort_name LIKE {$this->_text} OR c.display_name LIKE {$this->_text
}
}
function contactIDs($offset = 0, $rowcount = 0, $sort = NULL) {
function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) {
$this->initialize();
return CRM_Core_DAO::singleValueQuery("SELECT contact_id FROM {$this->_tableName}");
$sql = "SELECT contact_id FROM {$this->_tableName}";
if ($returnSQL) {
return $sql;
}
else {
return CRM_Core_DAO::singleValueQuery($sql);
}
}
function all($offset = 0, $rowcount = 0, $sort = NULL, $includeContactIDs = FALSE, $justIDs = FALSE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment