diff --git a/plugin/ticket/src/ticket.class.php b/plugin/ticket/src/ticket.class.php index 145e85f1cb..39093b2103 100644 --- a/plugin/ticket/src/ticket.class.php +++ b/plugin/ticket/src/ticket.class.php @@ -288,8 +288,8 @@ class TicketManager if ($sendConfirmation) { $form = '

' . $plugin->get_lang('TicketWasThisAnswerSatisfying') . '

- - + +
'; $content .= $form; Database::query( diff --git a/plugin/ticket/src/ticket_details.php b/plugin/ticket/src/ticket_details.php index d6c2f38876..3edb3b44c5 100644 --- a/plugin/ticket/src/ticket_details.php +++ b/plugin/ticket/src/ticket_details.php @@ -162,7 +162,7 @@ if (!isset($_GET['ticket_id'])) { } if (isset($_POST['response'])) { if ($user_id == $ticket['ticket']['request_user']) { - $response = ($_POST['response'] == get_lang('Yes')) ? true : ($_POST['response'] == get_lang('No') ? false : null); + $response = ($_POST['response'] == "1") ? true : ($_POST['response'] == "0" ? false : null); if ($response && $ticket['ticket']['status_id'] == 'XCF') { TicketManager::close_ticket($_GET['ticket_id'], $user_id); $ticket['ticket']['status_id'] = 'CLS';