Skip to content

Commit

Permalink
fix(issue): ticket status when approval request is used
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 10, 2020
1 parent a17e459 commit d9b4677
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,6 @@ public static function getTicketStatusForIssue(Ticket $item) {
$user = 0;
if (!$ticketValidation->isNewItem()) {
$user = $ticketValidation->fields['users_id_validate'];
$status = 103;
switch ($ticketValidation->fields['status']) {
case TicketValidation::WAITING:
$status = 101;
break;
case TicketValidation::REFUSED:
$status = 102;
break;
}
}

return ['status' => $status, 'user' => $user];
Expand Down

0 comments on commit d9b4677

Please sign in to comment.