From 5f0aaea4cf0749bfb657d876ef5c8b005b0ecd74 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Fri, 19 Jul 2013 15:43:16 +0530 Subject: [PATCH] minor cleanup and added @todo for the future, CRM-10976 --- CRM/Event/BAO/Event.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 1c621f666e..8b424313d6 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1500,7 +1500,7 @@ WHERE civicrm_event.is_active = 1 else { if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name)) { $query = " -SELECT html_type, data_type, date_format, time_format +SELECT html_type, data_type FROM civicrm_custom_field WHERE id = $cfID "; @@ -1521,6 +1521,9 @@ WHERE id = $cfID $customVal = (float )($params[$name]); } elseif ($dao->data_type == 'Date') { + //@todo note the currently we are using default date time formatting. Since you can select/set + // different date and time format specific to custom field we should consider fixing this + // sometime in the future $customVal = $displayValue = CRM_Utils_Date::customFormat( CRM_Utils_Date::processDate($params[$name]), $config->dateformatFull); -- 2.25.1