Skip to content

Commit

Permalink
Merge pull request #24194 from yashodha/dev-3141
Browse files Browse the repository at this point in the history
(dev/core#3141) Membership should be listed chronologically by end da…
  • Loading branch information
mattwire authored Aug 11, 2022
2 parents 431c0d3 + f15dcc2 commit b929760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CRM/Member/Page/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function browse() {
$dao = new CRM_Member_DAO_Membership();
$dao->contact_id = $this->_contactId;
$dao->whereAdd($addWhere);
$dao->orderBy('end_date DESC');
$dao->find();

//CRM--4418, check for view, edit, delete
Expand Down
2 changes: 1 addition & 1 deletion CRM/Member/Page/UserDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function listMemberships() {
$dao = new CRM_Member_DAO_Membership();
$dao->contact_id = $this->_contactId;
$dao->is_test = 0;
$dao->orderBy('start_date DESC');
$dao->orderBy('end_date DESC');
$dao->find();

while ($dao->fetch()) {
Expand Down

0 comments on commit b929760

Please sign in to comment.