Rename function enableFullGroupByMode to be reenableFullGroupByMode to be more explii...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 1 May 2018 04:20:36 +0000 (14:20 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 1 May 2018 04:20:36 +0000 (14:20 +1000)
CRM/Core/DAO.php
CRM/Export/BAO/Export.php
CRM/Mailing/Event/BAO/TrackableURLOpen.php
CRM/Report/Form.php

index 294c1e4f7215e1e6cf60a4c8e84c67b2052c2ada..d7e148051eee208bbe99b1c10a186ed7acb79658 100644 (file)
@@ -177,9 +177,9 @@ class CRM_Core_DAO extends DB_DataObject {
   }
 
   /**
-   * Enables ONLY_FULL_GROUP_BY sql_mode as necessary..
+   * Re-enables ONLY_FULL_GROUP_BY sql_mode as necessary..
    */
-  public static function enableFullGroupByMode() {
+  public static function reenableFullGroupByMode() {
     $currentModes = CRM_Utils_SQL::getSqlModes();
     if (CRM_Utils_SQL::supportsFullGroupBy() && !in_array('ONLY_FULL_GROUP_BY', $currentModes) && CRM_Utils_SQL::isGroupByModeInDefault()) {
       $currentModes[] = 'ONLY_FULL_GROUP_BY';
index 9b1523e1ad68141fe0c461f07794fc1f2e9c398e..f01ee312607c40060b1794e680e4e8fcf5222525 100644 (file)
@@ -1007,11 +1007,11 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c
       // delete the export temp table and component table
       $sql = "DROP TABLE IF EXISTS {$exportTempTable}";
       CRM_Core_DAO::executeQuery($sql);
-      CRM_Core_DAO::enableFullGroupByMode();
+      CRM_Core_DAO::reenableFullGroupByMode();
       CRM_Utils_System::civiExit();
     }
     else {
-      CRM_Core_DAO::enableFullGroupByMode();
+      CRM_Core_DAO::reenableFullGroupByMode();
       throw new CRM_Core_Exception(ts('No records to export'));
     }
   }
index ba933218e1cbb5edd8e946790fff69669c0d9c37..6cd04732e6f6b1455cf6ed4dc8c7e4b8d548949f 100644 (file)
@@ -366,7 +366,7 @@ class CRM_Mailing_Event_BAO_TrackableURLOpen extends CRM_Mailing_Event_DAO_Track
     }
     CRM_Core_DAO::disableFullGroupByMode();
     $dao->query($query);
-    CRM_Core_DAO::enableFullGroupByMode();
+    CRM_Core_DAO::reenableFullGroupByMode();
     $results = array();
 
     while ($dao->fetch()) {
index 7d8454fea48d01ac00601eeade272c979e2d59a8..b66fc3599c9184070d119334e68309cf1f899d10 100644 (file)
@@ -2962,7 +2962,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       CRM_Core_DAO::disableFullGroupByMode();
     }
     $dao = CRM_Core_DAO::executeQuery($sql);
-    CRM_Core_DAO::enableFullGroupByMode();
+    CRM_Core_DAO::reenableFullGroupByMode();
     if (!is_array($rows)) {
       $rows = array();
     }