From 6a448668adada111e991694c584dc999beabbb0e Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 26 Jun 2026 13:28:03 -0400 Subject: [PATCH] Clients: Only show 3 tags per line --- agent/clients.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/clients.php b/agent/clients.php index 3ce938e0..433dff02 100644 --- a/agent/clients.php +++ b/agent/clients.php @@ -389,7 +389,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $client_tag_id_array[] = $client_tag_id; $client_tag_name_display_array[] = "$client_tag_name"; } - $client_tags_display = implode('', $client_tag_name_display_array); + $client_tags_display = ''; + foreach (array_chunk($client_tag_name_display_array, 3) as $tag_row) { + $client_tags_display .= "
" . implode('', $tag_row) . "
"; + } //Add up all the payments for the invoice and get the total amount paid to the invoice $sql_invoice_amounts = mysqli_query($mysqli, "SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE invoice_client_id = $client_id AND invoice_status != 'Draft' AND invoice_status != 'Cancelled' AND invoice_status != 'Non-Billable' ");