From 166a606ba90991928d20f8145fd6449abb607bb4 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 26 Jun 2026 13:26:25 -0400 Subject: [PATCH] Remove client counts on clients listing page --- agent/clients.php | 76 ----------------------------------------------- 1 file changed, 76 deletions(-) diff --git a/agent/clients.php b/agent/clients.php index 291dfab7..3ce938e0 100644 --- a/agent/clients.php +++ b/agent/clients.php @@ -317,7 +317,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Primary Location - = 1) && $config_module_enable_accounting == 1) { ?> Billing @@ -371,62 +370,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $client_abbreviation = shortenClient($client_name); } - // Counts - - // Contact Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('contact_id') AS num FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL")); - $contact_count = $row['num']; - if ($contact_count) { - $contact_count_display = "$contact_count Contacts"; - } else { - $contact_count_display = ''; - } - - // Vendors Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('vendor_id') AS num FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL")); - $vendor_count = $row['num']; - if ($vendor_count) { - $vendor_count_display = "$vendor_count Vendors"; - } else { - $vendor_count_display = ''; - } - - // Asset Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('asset_id') AS num FROM assets WHERE asset_client_id = $client_id AND asset_archived_at IS NULL")); - $asset_count = $row['num']; - if ($asset_count) { - $asset_count_display = "$asset_count Assets"; - } else { - $asset_count_display = ''; - } - - // Credential Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('credential_id') AS num FROM credentials WHERE credential_client_id = $client_id AND credential_archived_at IS NULL")); - $credential_count = $row['num']; - if ($credential_count) { - $credential_count_display = "$credential_count Credentials"; - } else { - $credential_count_display = ''; - } - - // Software Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('software_id') AS num FROM software WHERE software_client_id = $client_id AND software_archived_at IS NULL")); - $software_count = $row['num']; - if ($software_count) { - $software_count_display = "$software_count Software"; - } else { - $software_count_display = ''; - } - - // Ticket Count - $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('ticket_id') AS num FROM tickets WHERE ticket_client_id = $client_id AND ticket_archived_at IS NULL")); - $ticket_count = $row['num']; - if ($ticket_count) { - $ticket_count_display = "$ticket_count Tickets"; - } else { - $ticket_count_display = ''; - } - // Client Tags $client_tag_name_display_array = array(); $client_tag_id_array = array(); @@ -554,25 +497,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - - - - - = 1) && $config_module_enable_accounting == 1) { ?>