" . escapeHtml(ticketReference($row)) . " is no longer related to the others"); } redirect(); } // Bulk Action > Link together on the tickets list - the tickets ticked, as one group if (isset($_POST['bulk_link_tickets'])) { validateCSRFToken(); $rows = ticketsForBulk(2); if (count($rows) < 2) { flashAlert('Tick at least two tickets to link together.', 'error'); redirect(); } $joined = ticketLinkTogether(array_keys($rows)); logAudit("Ticket", "Bulk Link", "$session_name linked " . count($rows) . " tickets together"); flashAlert($joined ? "Linked " . count($rows) . " tickets together" : 'They were already related.'); redirect(); }