Skip to content

Commit 369fdb5

Browse files
committed
fix(issue): useless criteria nesting
1 parent 17aa943 commit 369fdb5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

inc/issue.class.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -993,17 +993,13 @@ static function getValidateCriteria() {
993993
}
994994

995995
static function getSolvedCriteria() {
996-
return ['criteria' => [
997-
[
998-
'criteria' => [[
999-
'link' => 'OR',
1000-
'field' => 4,
1001-
'searchtype' => 'equals',
1002-
'value' => Ticket::SOLVED, // see Ticket::getAllStatusArray()
1003-
],
1004-
]],
1005-
],
1006-
'reset' => 'reset'];
996+
return ['criteria' => [['link' => 'AND',
997+
'field' => 4,
998+
'searchtype' => 'equals',
999+
'value' => Ticket::SOLVED, // see Ticket::getAllStatusArray()
1000+
],
1001+
],
1002+
'reset' => 'reset'];
10071003
}
10081004

10091005
static function getClosedCriteria() {

0 commit comments

Comments
 (0)