5.Finally open /include/class.ticket.php
find (around line 1307)
$extId=Ticket:();
$sql= 'INSERT INTO '.TICKET_TABLE.' SET created=NOW() '.
and below
',subject='.db_input(Format:($var)).
add
',duedate='.db_input(date('Y-m-d G',Misc:($var.' '.$var))).
Save and close class.ticket.php and go and test your due date field with date picker.
PS
If your want your due date to be displayed as DD/MM/YY see this thread!
http://osticket.com/forums/showpost.php?p=16926&postcount=4(http://osticket.com/forums/showpost.php?p=16926&postcount=4)
Cheers
Tom
Hi ! Great MOD !
I had several issues with it (blank date = current date)
So, this is how I fixed it :
At point 5. of your MOD, in include\class.ticket.php, in function create, I added :
$sql= 'INSERT INTO '.TICKET_TABLE.' SET created=NOW() '.
',ticketID='.db_input($extId).
',dept_id='.db_input($deptId).
',topic_id='.db_input($topicId).
',priority_id='.db_input($priorityId).
',email='.db_input($var).
',name='.db_input(Format:($var)).
',subject='.db_input(Format:($var)).
',helptopic='.db_input(Format:($topicDesc)).
',phone="'.db_input($var,false).'"'.
',phone_ext='.db_input($var?$var:'').
',ip_address='.db_input($ipaddress).
',source='.db_input($source).
',duedate='.($var?db_input(date('Y-m-d G',Misc:($var.' '.$var))):'NULL'); //--Add 2011/05/11
//Make sure the origin is staff - avoid firebug hack! --Removed 2011/05/11
// if($var && !strcasecmp($origin,'staff'))
// $sql.=',duedate='.db_input(date('Y-m-d G',Misc:($var.' '.$var)));
This sould work fine, although, you authorize anyone to insert a due date when creating a ticket (not only staff members).
Bye !
Raysko