From d3153a29cbefe9b8896947233f97b273c1510228 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 27 Jan 2024 03:32:30 -0500 Subject: [PATCH] Asset Assignment Do not show all archived users from the date the asset is created instead if an asset has an archive user show that user and all new users --- client_asset_edit_modal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_asset_edit_modal.php b/client_asset_edit_modal.php index 86c0ef30..fb99ed29 100644 --- a/client_asset_edit_modal.php +++ b/client_asset_edit_modal.php @@ -251,7 +251,7 @@ '$asset_created_at' OR contact_archived_at IS NULL) AND contact_client_id = $client_id ORDER BY contact_archived_at ASC, contact_name ASC"); + $sql_contacts = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = $asset_contact_id OR (contact_archived_at IS NULL) AND contact_client_id = $client_id ORDER BY contact_archived_at ASC, contact_name ASC"); while ($row = mysqli_fetch_array($sql_contacts)) { $contact_id_select = intval($row['contact_id']); $contact_name_select = nullable_htmlentities($row['contact_name']);