solved (version 1.9.14), here is my solution for custom TicketNumbers, I only do not know at the moment, if some errors would occur because of these changes, but I saw no dependencies of the ticketnumber. Please tell me, if you know, that there occur some errors by completely customised ticketnumbers:- Create Ticket with custom
Ticketnumber without Errors:
/include/staff/ticket-open.inc.php approximately line 115:
<!--
////////////////////////////////////////////// //own part
-->
<tr>
<td width="160"
class="required">
<?php echo __('Ticket
Number');?>:
</td>
<td>
<input type="text"
name="ticket_number">
</td>
</tr>
<!--
////////////////////////////////////////////// //end of the own part
-->
And /include/class.ticket.php
approximately line 2804:
//We are
ready son...hold on to the rails.
//$number
= $topic ? $topic->getNewTicketNumber() : $cfg->getNewTicketNumber();
$number =
$vars;
- Edit Ticket with custom
Ticketnumber without Errors:
/include/staff/ticket-edit.inc.php
approximately line 59:
<!--
////////////////////////////////////////////// //own part
-->
<tr>
<td width="160"
class="required">
<?php echo __('Ticket
Number');?>:
</td>
<td>
<input type="text"
name="ticket_number">
</td>
</tr>
<!--
////////////////////////////////////////////// //end of the own part
-->
And /include/class.ticket.php approximately line 2260:
$sql='UPDATE
'.TICKET_TABLE.' SET updated=NOW() '
.'
,topic_id='.db_input($vars)
.'
,number='.db_input($vars)
.'
,sla_id='.db_input($vars)
.' ,source='.db_input($vars)
.' ,duedate='.($vars?db_input(date('Y-m-d
G',Misc:($vars.' '.$vars))):'NULL');