Skip to content

Commit 5af168e

Browse files
committed
fix: 表示順(sort)が指定されていて、ソート方法(direction)の名前付きパラメータがないときNoticeが発生するため修正
researchmap/RmNetCommons3#1970
1 parent f6311c9 commit 5af168e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/CircularNoticesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function beforeFilter() {
8989
* index action
9090
*
9191
* @return void
92-
*
92+
*
9393
* 速度改善の修正に伴って発生したため抑制
9494
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
9595
* @SuppressWarnings(PHPMD.NPathComplexity)
@@ -139,7 +139,7 @@ public function index() {
139139
$currentSort = isset($this->params['named']['sort'])
140140
? $this->params['named']['sort']
141141
: 'CircularNoticeContent.modified';
142-
$currentDirection = isset($this->params['named']['sort'])
142+
$currentDirection = isset($this->params['named']['direction'])
143143
? $this->params['named']['direction']
144144
: 'desc';
145145
if (! isset($sortOptions[$currentSort . '.' . $currentDirection])) {

0 commit comments

Comments
 (0)