diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index e7e48b8b..8bbd8395 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -538,15 +538,32 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); fetch_assoc()) + { + if ($statusRow['IsStaffReopenedStatus'] == 1) + { + $staffReopenedStatus['ID'] = $statusRow['ID']; + } else + { + $staffClosedOptionStatus['ID'] = $statusRow['ID']; + $staffClosedOptionStatus['TicketViewContentKey'] = $statusRow['TicketViewContentKey']; + } + } + + if ($ticket['status'] != $staffClosedOptionStatus['ID']) { echo ''.$hesklang['close_action'].''; + href="change_status.php?track='.$trackingID.'&s='.$staffClosedOptionStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].''; } else { echo ''.$hesklang['open_action'].''; + href="change_status.php?track='.$trackingID.'&s='.$staffReopenedStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['open_action'].''; } ?>