Add Archive to Contacts hiding archived dropdowns in client area

This commit is contained in:
johnny@pittpc.com
2021-02-07 14:44:00 -05:00
parent 9b0d4d4e7e
commit d24df2f2db
7 changed files with 30 additions and 11 deletions

View File

@@ -62,7 +62,7 @@
<option value="">- Contact -</option>
<?php
$sql_vendors = mysqli_query($mysqli,"SELECT * FROM contacts WHERE client_id = $client_id ORDER BY contact_name ASC");
$sql_vendors = mysqli_query($mysqli,"SELECT * FROM contacts WHERE contact_archived_at IS NULL AND client_id = $client_id ORDER BY contact_name ASC");
while($row = mysqli_fetch_array($sql_vendors)){
$contact_id = $row['contact_id'];
$contact_name = $row['contact_name'];