[TICKET_STATUS_NEW => 'Open it', TICKET_STATUS_OPEN => 'It stays Open', TICKET_STATUS_RESOLVED => 'Reopen it - back to Open'][$s_id] ?? 'Move it back to Open']; if (!$s_builtin) { $s_reply_choices['0'] = 'Leave it in this status'; } foreach (ticketStatusReplyReady() ? ticketStatusReplyTargets($s_id) : [] as $target_id => $target) { if ($target_id !== TICKET_STATUS_OPEN) { $s_reply_choices["to-$target_id"] = 'Move it to ' . $target['ticket_status_name']; } } $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-$s_reply_to" : (string) ($s_builtin ? 1 : $s_reply); ?>