Skip to content
Snippets Groups Projects
Commit 9dae0079 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1962 from dlobo/CRM-13745

CRM-13745 - fix mysql exception
parents 19b0158b bbce9d40
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