From 7dff524a1974aa2937803d7610b1db791259aa87 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 10 Apr 2024 13:27:18 -0400 Subject: [PATCH] Client domains: Do not show archived vendors and sort vendor names by name in the select boxes --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax.php b/ajax.php index ab1f7d77..164eaba1 100644 --- a/ajax.php +++ b/ajax.php @@ -98,7 +98,7 @@ if (isset($_GET['domain_get_json_details'])) { } // Get all registrars/webhosts (vendors) for this client that could be linked to this domain - $vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id"); + $vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL ORDER BY vendor_name ASC"); while ($row = mysqli_fetch_array($vendor_sql)) { $response['vendors'][] = $row; }