warning fixes
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 8 Jan 2016 13:23:08 +0000 (18:53 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 8 Jan 2016 13:23:08 +0000 (18:53 +0530)
CRM/Report/Form.php

index 777b75a9ff71c7e7093b6c2bc501092cc0b874b7..c3a2cb6f84eb7e1721169f3097a1df46661d924d 100644 (file)
@@ -4482,12 +4482,13 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
     }
   }
 
-  /*
+  /**
    * CRM-17793 - Alter DateTime section header to group by date from the datetime field.
    * @param $tempTable
    * @param $columnName
    */
   public function alterSectionHeaderForDateTime($tempTable, $columnName) {
+    // add new column with date value for the datetime field
     $tempQuery = "ALTER TABLE {$tempTable} ADD COLUMN {$columnName}_date VARCHAR(128)";
     CRM_Core_DAO::executeQuery($tempQuery);
     $updateQuery = "UPDATE {$tempTable} SET {$columnName}_date = date({$columnName})";