- Edited
I'm trying to get the "Assign to:" drop down box to default to the current agents name when opening a new ticket. This would help make the ticket opening process more efficient when the current agent will be the owner of the ticket, yet still leave the option to assign the ticket to a different agent.has anyone completed this successfully?Below is a copy paste of the unaltered code for the "Assign To:" box on the New Ticket page. It almost seems like it's already built to do that (highlighted??), however it does not work for us.Thanks so much for any advice!include/staff/ticket-open.inc.php<?php if($thisstaff->hasPerm(TicketModel:, false)) { ?> <tr> <td width="160"><?php echo __('Assign To');?>:</td> <td> <select id="assignId" name="assignId"> <option value="0" selected="selected">— <?php echo __('Select an Agent OR Team');?> —</option> <?php if(($users=Staff:())) { echo '<OPTGROUP label="'.sprintf(__('Agents (%d)'), count($users)).'">'; foreach($users as $id => $name) { $k="s$id"; echo sprintf('<option value="%s" %s>%s</option>', $k,(($info==$k)?'selected="selected"':''),$name); } echo '</OPTGROUP>'; }osTicket v. 1.10.1php 5.6IIS10