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

This commit is contained in:
johnnyq 2024-01-27 03:32:30 -05:00
parent 9184fa3ab3
commit d3153a29cb
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@
<option value="">- Contact -</option>
<?php
$sql_contacts = mysqli_query($mysqli, "SELECT * FROM contacts WHERE (contact_archived_at > '$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']);