Responses - refs #6715

1.9.x
Francis Gonzales 11 years ago
parent 753cc4f389
commit cd4cf88051
  1. 2
      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';

Loading…
Cancel
Save