projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4594843
)
fix the ordering of recent activities on case dashboard
author
Kurund Jalmi
<kurund.jalmi@gmail.com>
Thu, 25 Aug 2022 13:45:16 +0000
(14:45 +0100)
committer
GitHub
<noreply@github.com>
Thu, 25 Aug 2022 13:45:16 +0000
(14:45 +0100)
CRM/Case/Page/AJAX.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Case/Page/AJAX.php
b/CRM/Case/Page/AJAX.php
index b692655b40dc3523a04c3d30fc09b62ba0a06a9c..21e78f82a781d32baa65bb84043518214578e146 100644
(file)
--- a/
CRM/Case/Page/AJAX.php
+++ b/
CRM/Case/Page/AJAX.php
@@
-169,6
+169,10
@@
class CRM_Case_Page_AJAX {
$allCases = !empty($params['all']);
+ if ($params['type'] === 'recent' && empty($params['sortBy'])) {
+ $params['sortBy'] = 'date DESC';
+ }
+
$cases = CRM_Case_BAO_Case::getCases($allCases, $params);
$casesDT = [