diff --git a/add_asset_modal.php b/add_asset_modal.php index 9e46df5c..bb03f501 100644 --- a/add_asset_modal.php +++ b/add_asset_modal.php @@ -117,7 +117,7 @@ - Contact - - Network - - Vendor - - Contact - $sb, 'o' => $o))); -$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM contacts WHERE client_id = $client_id AND (contact_name LIKE '%$q%') ORDER BY $sb $o LIMIT $record_from, $record_to"); +$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM contacts WHERE contact_archived_at IS NULL AND (contact_name LIKE '%$q%') AND client_id = $client_id ORDER BY $sb $o LIMIT $record_from, $record_to"); $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); @@ -95,6 +95,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $contact_photo = $row['contact_photo']; $contact_initials = initials($contact_name); $contact_notes = $row['contact_notes']; + $contact_created_at = $row['contact_created_at']; ?>