When opening a ticket on the Agent Area automatically assign ticket to self but the option to Unusassigned remains

This commit is contained in:
johnnyq
2026-09-03 17:10:15 -04:00
parent 22921f5999
commit 98f8de68ae

View File

@@ -161,7 +161,7 @@ ob_start();
while ($row = mysqli_fetch_assoc($sql)) {
$user_id = intval($row['user_id']);
$user_name = escapeHtml($row['user_name']); ?>
<option value="<?= $user_id ?>"><?= $user_name ?></option>
<option <?php if ($session_user_id == $user_id) { echo "selected"; } ?> value="<?= $user_id ?>"><?= $user_name ?></option>
<?php } ?>
</select>
</div>