Fix a further fatal error when full group by is enabled
authoreileen <emcnaughton@wikimedia.org>
Mon, 19 Nov 2018 02:58:12 +0000 (15:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 19 Nov 2018 02:58:12 +0000 (15:58 +1300)
CRM/Export/BAO/Export.php

index c56ca09031a3e90cd3b6ac6af59c833085a04e2b..45cf9a9a1fa680c6a991d57aa93a2c0634d7447e 100644 (file)
@@ -1071,7 +1071,9 @@ CREATE TABLE {$exportTempTable}_temp SELECT *
 FROM {$exportTempTable}
 GROUP BY civicrm_primary_id ";
 
+    CRM_Core_DAO::disableFullGroupByMode();
     CRM_Core_DAO::executeQuery($query);
+    CRM_Core_DAO::reenableFullGroupByMode();
 
     $query = "DROP TABLE $exportTempTable";
     CRM_Core_DAO::executeQuery($query);