Skip to content

Commit

Permalink
fix(issue): update status when adding a validation
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 5, 2021
1 parent de5ac4f commit 2e1ae1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1274,12 +1274,15 @@ private function createIssue() {
],
1
);

$validationStatus = PluginFormcreatorCommon::getTicketStatusForIssue($ticket);

$ticketUserRow = array_pop($ticketUserRow);
$issue->add([
'items_id' => $ticketId,
'itemtype' => Ticket::class,
'name' => addslashes($ticket->fields['name']),
'status' => $ticket->fields['status'],
'status' => $validationStatus['status'],
'date_creation' => $ticket->fields['date'],
'date_mod' => $ticket->fields['date_mod'],
'entities_id' => $ticket->fields['entities_id'],
Expand Down

0 comments on commit 2e1ae1a

Please sign in to comment.