Client domains: Do not show archived vendors and sort vendor names by name in the select boxes

This commit is contained in:
johnnyq 2024-04-10 13:27:18 -04:00
parent 88a96e3044
commit 7dff524a19
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}