Skip to content

Commit 6487611

Browse files
committed
fix(issue): vonsistency with seaerch for accepted issues
accepted issues are displayed when searchong for closed issues, but refused issues required a specific search criteria
1 parent 2df02ae commit 6487611

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hook.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ function plugin_formcreator_addWhere($link, $nott, $itemtype, $ID, $val, $search
235235
$tocheck = array_keys($item->getAllStatusArray());
236236
break;
237237

238+
case Ticket::SOLVED:
239+
$tocheck = $item->getSolvedStatusArray();
240+
break;
241+
238242
case Ticket::INCOMING:
239243
$tocheck = $item->getNewStatusArray();
240244
break;

inc/issue.class.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ static function getClosedStatusArray() {
868868
}
869869

870870
static function getSolvedStatusArray() {
871-
return Ticket::getSolvedStatusArray();
871+
return [...Ticket::getSolvedStatusArray(), PluginFormcreatorFormAnswer::STATUS_REFUSED];
872872
}
873873

874874
static function getNewStatusArray() {
@@ -942,10 +942,6 @@ static function getSolvedCriteria() {
942942
'searchtype' => 'equals',
943943
'value' => Ticket::SOLVED, // see Ticket::getAllStatusArray()
944944
],
945-
['field' => 4,
946-
'searchtype' => 'equals',
947-
'value' => PluginFormcreatorFormAnswer::STATUS_REFUSED,
948-
'link' => 'OR']
949945
]],
950946
],
951947
'reset' => 'reset'];

0 commit comments

Comments
 (0)