DB Optimizing in Ticket Selections and relogicify mark billable also more logging

This commit is contained in:
johnnyq
2024-11-19 18:46:07 -05:00
parent dea702b45f
commit 1e4306381f
8 changed files with 29 additions and 31 deletions

View File

@@ -21,9 +21,10 @@
<select class="form-control select2" name="assigned_to">
<option value="0">Not Assigned</option>
<?php
$sql_users_select = mysqli_query($mysqli, "SELECT * FROM users
$sql_users_select = mysqli_query($mysqli, "SELECT users.user_id, user_name FROM users
LEFT JOIN user_settings on users.user_id = user_settings.user_id
WHERE user_role > 1
AND user_type = 1
AND user_archived_at IS NULL
ORDER BY user_name DESC"
);