Skip to content

Commit

Permalink
Merge pull request civicrm#12966 from seamuslee001/activity_report_gr…
Browse files Browse the repository at this point in the history
…oup_fgb

Disable ONLY_FULL_GROUP_BY sql mode when doing add2group function on …
  • Loading branch information
eileenmcnaughton authored Oct 19, 2018
2 parents ed20eeb + dfb264b commit 26b4525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRM/Report/Form/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,9 @@ public function add2group($groupID) {
GROUP BY civicrm_activity_id $having {$this->_orderBy}";
$select = 'AS addtogroup_contact_id';
$query = str_ireplace('AS civicrm_contact_contact_target_id', $select, $query);
CRM_Core_DAO::disableFullGroupByMode();
$dao = $this->executeReportQuery($query);
CRM_Core_DAO::reenableFullGroupByMode();

$contactIDs = array();
// Add resulting contacts to group
Expand Down

0 comments on commit 26b4525

Please sign in to comment.