Merge branch 'master' of jon/com.megaphonetech.relateentities into master
This commit is contained in:
commit
347d23d88d
@ -5,7 +5,7 @@ class CRM_RelateEntities_Settings {
|
|||||||
public static function install() {
|
public static function install() {
|
||||||
CRM_Core_DAO::executeQuery("
|
CRM_Core_DAO::executeQuery("
|
||||||
CREATE TABLE IF NOT EXISTS `civicrm_relate_entities` (
|
CREATE TABLE IF NOT EXISTS `civicrm_relate_entities` (
|
||||||
`id` int(10) UNSIGNED NOT NULL,
|
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`entity_table_a` varchar(255) NOT NULL,
|
`entity_table_a` varchar(255) NOT NULL,
|
||||||
`entity_table_b` varchar(255) NOT NULL,
|
`entity_table_b` varchar(255) NOT NULL,
|
||||||
`entity_id_a` int(10) UNSIGNED NOT NULL,
|
`entity_id_a` int(10) UNSIGNED NOT NULL,
|
||||||
|
@ -208,13 +208,15 @@ class CRM_RelateEntities_Utils {
|
|||||||
) AS temp
|
) AS temp
|
||||||
$groupByClause
|
$groupByClause
|
||||||
";
|
";
|
||||||
|
CRM_Core_DAO::disableFullGroupByMode();
|
||||||
if ($getCount) {
|
if ($getCount) {
|
||||||
return CRM_Core_DAO::singleValueQuery($query, $queryParams);
|
$result = CRM_Core_DAO::singleValueQuery($query, $queryParams);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return CRM_Core_DAO::executeQuery($query, $queryParams);
|
$result = CRM_Core_DAO::executeQuery($query, $queryParams);
|
||||||
}
|
}
|
||||||
|
CRM_Core_DAO::reenableFullGroupByMode();
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user