Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
5f0aaea4
Commit
5f0aaea4
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
minor cleanup and added @todo for the future, CRM-10976
parent
f5f3f029
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Event/BAO/Event.php
+4
-1
4 additions, 1 deletion
CRM/Event/BAO/Event.php
with
4 additions
and
1 deletion
CRM/Event/BAO/Event.php
+
4
−
1
View file @
5f0aaea4
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment