Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2006,9 +2006,12 @@ public function getAggregatedStatus(): ?int {
}
$ticketStatus = PluginFormcreatorCommon::getTicketStatusForIssue($generatedTarget);
if ($ticketStatus >= PluginFormcreatorFormAnswer::STATUS_WAITING) {
// Ignore tickets refused or pending for validation
// getTicketStatusForIssue() does not returns STATUS_ACCEPTED
continue;
// force pending approval status to be seen from to_validate dashboard
if ($ticketStatus == PluginFormcreatorFormAnswer::STATUS_WAITING) {
return PluginFormcreatorFormAnswer::STATUS_WAITING;
} else {
continue;
}
}

if ($ticketStatus == CommonITILObject::WAITING) {
Expand Down