Skip to content

Commit

Permalink
fix(issue): simplify counters criterias
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Dec 18, 2020
1 parent bd16d99 commit 7e7bf60
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,10 @@ static function getProcessingCriteria() {
return ['criteria' => [['field' => 4,
'searchtype' => 'equals',
'value' => 'process'],
['field' => 8,
'searchtype' => 'equals',
'value' => $currentUser]],
// ['field' => 8,
// 'searchtype' => 'equals',
// 'value' => $currentUser]
],
'reset' => 'reset'];
}

Expand All @@ -724,9 +725,10 @@ static function getWaitingCriteria() {
return ['criteria' => [['field' => 4,
'searchtype' => 'equals',
'value' => Ticket::WAITING],
['field' => 8,
'searchtype' => 'equals',
'value' => $currentUser]],
// ['field' => 8,
// 'searchtype' => 'equals',
// 'value' => $currentUser]
],
'reset' => 'reset'];
}

Expand All @@ -743,11 +745,12 @@ static function getValidateCriteria() {

static function getSolvedCriteria() {
$currentUser = Session::getLoginUserID();
return ['criteria' => [['link' => 'AND',
'field' => 8,
'searchtype' => 'equals',
'value' => $currentUser,
],
return ['criteria' => [
// ['link' => 'AND',
// 'field' => 8,
// 'searchtype' => 'equals',
// 'value' => $currentUser,
// ],
['link' => 'AND',
'criteria' => [[
'link' => 'AND',
Expand Down

0 comments on commit 7e7bf60

Please sign in to comment.