Hello!
Once again another MOD brought to you by yours truly :)
NOTE: I am in no way responsible for you flubbing up your data using this MOD or if someone hacks into your system and deletes all your fields. This script does check that you are staff but I don't understand the permissions enough (and at this point don't care) to say it's absolutely positively as secure as can be.
As always I included a few lines above/below so you can find where to insert the lines.
And the moment you have been waiting for:
/scp/ajax_editticket.php (Added)
See attachments.
/scp/js/ajax_editticket.js (Added)
See attachments.
/images/icons/ticket_edit.gif

/include/staff/header.inc.php (~Line 17)
<script type="text/javascript" src="js/autolock.js" charset="utf-8"></script>
<?}?>
Addition by webPragmatist (Editable Ticket Fields)
<? if ((basename($_SERVER) == 'tickets.php') && (is_numeric($_GET))) { ?>
<script type="text/javascript" src="js/ajax_editticket.js" charset="utf-8"></script>
<?}?>
/include/staff/viewticket.inc.php (~Line 54)
<td width=50% valign="top">
<table align="center" class="ticketinfo" cellspacing="1" cellpadding="3" width="100%" border=0>
<tr>
<th>Name:</th>
<td><input type="text" name="name" size="30" value="<?=Format:($ticket->getName())?>" id="name" /><a href="javascript(<?=$id?>,'name')"><img src="../images/icons/ticket_edit.gif" /></a></td>
</tr>
<tr>
<th>Email:</th>
<td><input type="text" name="email" size="30" value="<?=$ticket->getEmail()?>" id="email" /><a href="javascript(<?=$id?>,'email')"><img src="../images/icons/ticket_edit.gif" /></a></td>
</tr>
<tr>
<th>Phone:</th>
<td><input type="text" name="phone" size="30" value="<?=$ticket->getPhone()?>" id="phone" /><a href="javascript(<?=$id?>,'phone')"><img src="../images/icons/ticket_edit.gif" /></a></td>
</tr>
<tr>
<th>Source:</th>
<td><?=$ticket->getSource()?> <?=$ticket->getIP()?></td>
</tr>
</table>
[ajax_editticket.js.txt](https://forum.osticket.com/assets/files/migrated/0/e3f9075d11fb6144f3af820359b7ce9.txt)
[ajax_editticket.php.txt](https://forum.osticket.com/assets/files/migrated/0/e186061538bbd03459929797449eafb.txt)