Skip to content

Commit cfc9a69

Browse files
authored
fix(issue): waiting status is not being computed correctly (#3597)
* fix(issue): waiting status is not being computed correctly * review
1 parent 86bac1a commit cfc9a69

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

inc/formanswer.class.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,12 +2005,15 @@ public function getAggregatedStatus(): ?int {
20052005
continue;
20062006
}
20072007
$ticketStatus = PluginFormcreatorCommon::getTicketStatusForIssue($generatedTarget);
2008-
if ($ticketStatus >= PluginFormcreatorFormAnswer::STATUS_WAITING) {
2009-
// Ignore tickets refused or pending for validation
2010-
// getTicketStatusForIssue() does not returns STATUS_ACCEPTED
2008+
if ($ticketStatus > PluginFormcreatorFormAnswer::STATUS_WAITING) {
20112009
continue;
20122010
}
20132011

2012+
// force pending approval status to be seen from to_validate dashboard
2013+
if ($ticketStatus == PluginFormcreatorFormAnswer::STATUS_WAITING) {
2014+
return PluginFormcreatorFormAnswer::STATUS_WAITING;
2015+
}
2016+
20142017
if ($ticketStatus == CommonITILObject::WAITING) {
20152018
$aggregatedStatus = CommonITILObject::WAITING;
20162019
break;

0 commit comments

Comments
 (0)