Skip to content

Commit

Permalink
Portfolio: Sort by date details page - refs BT#18201
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 10, 2021
1 parent 03fe5fb commit 40ba862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/PortfolioController.php
Expand Up @@ -1660,7 +1660,7 @@ function (Portfolio $item) {
return api_convert_and_format_date($date);
};

$tblItems = new SortableTable('tbl_items', $getItemsTotalNumber, $getItemsData, 0);
$tblItems = new SortableTable('tbl_items', $getItemsTotalNumber, $getItemsData, 1, 20, 'DESC');
$tblItems->set_additional_parameters(['action' => 'details', 'user' => $this->owner->getId()]);
$tblItems->set_header(0, get_lang('Title'));
$tblItems->set_column_filter(0, $portfolioItemColumnFilter);
Expand Down Expand Up @@ -1748,7 +1748,7 @@ function (PortfolioComment $comment) {
);
};

$tblComments = new SortableTable('tbl_comments', $getCommentsTotalNumber, $getCommentsData, 0);
$tblComments = new SortableTable('tbl_comments', $getCommentsTotalNumber, $getCommentsData, 1, 20, 'DESC');
$tblComments->set_additional_parameters(['action' => 'details', 'user' => $this->owner->getId()]);
$tblComments->set_header(0, get_lang('Resume'));
$tblComments->set_column_filter(
Expand Down

0 comments on commit 40ba862

Please sign in to comment.