Skip to content

Commit

Permalink
デフォルトのソート順に合わせる
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed Jan 26, 2022
1 parent 6594c77 commit 2e5a796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Eccube/Repository/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ public function getQueryBuilderBySearchDataForAdmin($searchData)
$sortOrder = (isset($searchData['sorttype']) && $searchData['sorttype'] == 'a') ? 'ASC' : 'DESC';

$qb->orderBy(self::COLUMNS[$searchData['sortkey']], $sortOrder);
$qb->addOrderBy('o.update_date', 'DESC');
$qb->addOrderBy('o.id', 'DESC');
} else {
$qb->orderBy('o.update_date', 'DESC');
Expand Down

0 comments on commit 2e5a796

Please sign in to comment.