Skip to content

Commit

Permalink
#4848 Followings menu should be ordered by last added
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Nov 28, 2024
1 parent f0d7767 commit 1f794c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/scripts/BxBaseMenuProfileFollowings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function _getMenuSubitems($iProfile, $sContextModule, $iStart = 0, $iP
if(!$iPerPage)
$iPerPage = $this->_iPerPageDefault;

$aIds = $this->_oConnection->getConnectedContentByType($iProfile, [$sContextModule], false, $iStart, $iPerPage + 1);
$aIds = $this->_oConnection->getConnectedContentByType($iProfile, [$sContextModule], false, $iStart, $iPerPage + 1, BX_CONNECTIONS_ORDER_ADDED_DESC);

$bNext = false;
if(count($aIds) > $iPerPage) {
Expand Down

0 comments on commit 1f794c9

Please sign in to comment.