Skip to content

Commit

Permalink
fix(issue): useless criteria nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Nov 18, 2022
1 parent 17aa943 commit 369fdb5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -993,17 +993,13 @@ static function getValidateCriteria() {
}

static function getSolvedCriteria() {
return ['criteria' => [
[
'criteria' => [[
'link' => 'OR',
'field' => 4,
'searchtype' => 'equals',
'value' => Ticket::SOLVED, // see Ticket::getAllStatusArray()
],
]],
],
'reset' => 'reset'];
return ['criteria' => [['link' => 'AND',
'field' => 4,
'searchtype' => 'equals',
'value' => Ticket::SOLVED, // see Ticket::getAllStatusArray()
],
],
'reset' => 'reset'];
}

static function getClosedCriteria() {
Expand Down

0 comments on commit 369fdb5

Please sign in to comment.