Page 1 of 1
Change default ticked boxes (ticket status)
Posted: Sat Aug 03, 2013 1:17 pm
by gurdain
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi again, I've added a new custom status.
By default the 'resolved' status is unticked in the ticket list so that it doesnt show up...how can I do the same for my new status?
Re: Change default ticked boxes (ticket status)
Posted: Thu Aug 08, 2013 5:15 am
by steve
Did you alter the structure of the Status colum in the ticket table of your DB?
Open hesk/inc/print_tickets.inc.php
change
Code: Select all
if ($tmp == 0 || ($tmp == 6 && !isset($status[3])) )
to
Code: Select all
if ($tmp == 0 || ($tmp == 7 && !isset($status[3])) )
Also, did you try selecting the status's you want as default then under more options check make this my default view then show tickets?
Re: Change default ticked boxes (ticket status)
Posted: Fri Aug 16, 2013 11:48 am
by gurdain
My new status is called enrolled.
By default I want it to be unticked for all users, not just me.
i can't find the line you pasted. I can find the bit before || only:
// Create the SQL based on the number of priorities we need
if ($tmp == 0 || $tmp == 4)
That's all....
Re: Change default ticked boxes (ticket status)
Posted: Fri Aug 16, 2013 11:53 am
by gurdain
Solved.
Changed:
Code: Select all
// Do we need to search by status?
if ( $tmp < 6 )
{
// If no statuses selected, show default (all except RESOLVED)
if ($tmp == 0)
{
$status = $possible_status;
unset($status[3]);
}
To:
Code: Select all
// Do we need to search by status?
if ( $tmp < 6 )
{
// If no statuses selected, show default (all except RESOLVED)
if ($tmp == 0)
{
$status = $possible_status;
unset($status[3]);
unset($status[6]);
}
Where the 6th status is my new one...