diff --git a/plugin/ticket/src/ticket_details.php b/plugin/ticket/src/ticket_details.php index 43d4dde196..a735967165 100644 --- a/plugin/ticket/src/ticket_details.php +++ b/plugin/ticket/src/ticket_details.php @@ -152,7 +152,7 @@ if (!isset($_GET['ticket_id'])) { } if (isset($_POST['response'])) { if ($user_id == $ticket['ticket']['request_user']) { - $response = ($_POST['response'] == 'si') ? true : ($_POST['response'] == 'no' ? false : null); + $response = ($_POST['response'] == get_lang('Yes')) ? true : ($_POST['response'] == get_lang('No') ? false : null); if ($response && $ticket['ticket']['status_id'] == 'XCF') { TicketManager::close_ticket($_GET['ticket_id'], $user_id); $ticket['ticket']['status_id'] = 'CLS';