Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
256db02a
Commit
256db02a
authored
3 years ago
by
Monish Deb
Browse files
Options
Downloads
Patches
Plain Diff
#2774
: Sort by date column on multirecord field listing section on...
#2774
: Sort by date column on multirecord field listing section on profile edit mode doesn't work
parent
e8a784a3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Profile/Page/MultipleRecordFieldsListing.php
+6
-1
6 additions, 1 deletion
CRM/Profile/Page/MultipleRecordFieldsListing.php
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl
+1
-1
1 addition, 1 deletion
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl
with
7 additions
and
2 deletions
CRM/Profile/Page/MultipleRecordFieldsListing.php
+
6
−
1
View file @
256db02a
...
...
@@ -307,7 +307,12 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
$customValue
=
&
$val
;
if
(
!
empty
(
$dateFields
)
&&
array_key_exists
(
$fieldId
,
$dateFields
))
{
// formatted date capture value capture
$dateFieldsVals
[
$fieldId
][
$recId
]
=
CRM_Core_BAO_CustomField
::
displayValue
(
$customValue
,
$fieldId
);
if
(
$this
->
_pageViewType
==
'profileDataView'
)
{
$dateFieldsVals
[
$fieldId
][
$recId
]
=
CRM_Utils_Date
::
processDate
(
$result
[
$recId
][
$fieldId
],
NULL
,
FALSE
,
'YmdHis'
);
}
else
{
$dateFieldsVals
[
$fieldId
][
$recId
]
=
CRM_Core_BAO_CustomField
::
displayValue
(
$customValue
,
$fieldId
);
}
//set date and time format
switch
(
$timeFormat
)
{
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl
+
1
−
1
View file @
256db02a
...
...
@@ -75,7 +75,7 @@
{
foreach
from
=
$records
key
=
recId
item
=
rows
}
<tr
class=
"
{
cycle
values
=
"odd-row,even-row"
}
"
>
{
foreach
from
=
$headers
key
=
hrecId
item
=
head
}
<td
{
crmAttributes
a
=
$attributes
.
$hrecId
.
$recId
}
>
{
$rows
.
$hrecId
}
</td>
<td
{
if
!
empty
(
$dateFieldsVals
.
$hrecId
)
}
data-order=
"
{
$dateFieldsVals
.
$hrecId
.
$recId
|
crmDate
:
'%Y-%m-%d'
}
"
{/
if
}
{
crmAttributes
a
=
$attributes
.
$hrecId
.
$recId
}
>
{
$rows
.
$hrecId
}
</td>
{/
foreach
}
<td>
{
$rows.action
}
</td>
{
foreach
from
=
$dateFieldsVals
key
=
fid
item
=
rec
}
...
...
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