I have changed the required field:
$fields = array('type'=>'email', 'required'=>0, 'error'=>'Email is required');
In: function update($var,&$errors) { and also under: function create($var,&$errors,$origin,$autorespond=true,$alertstaff=true) {
I have also changed /include/staff/viewticket.inc.php to show the * on the phone field etc. However I have one remaining issue, I am needing to customize this:
<?php
echo $ticket->getEmail();
if(($related=$ticket->getRelatedTicketsCount())) {
echo sprintf(' <a href="tickets.php?a=search&query=%s" title="Related Tickets">(<b>%d</b>)</a>',
urlencode($ticket->getEmail()),$related);
}
?>
To have the same functionality on the phone field, as a quick fix I have added:
th>Phone:</th>
<td><?=Format:($ticket->getPhoneNumber())?> <a href="tickets.php?a=search&query=<?php echo $ticket->getPhoneNumber(); ?>" title="Related Tickets">View Related Tickets</a>
</td>
But of course it doesn't show the number of related tickets. Any idea's?