Change default ticked boxes (ticket status)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Change default ticked boxes (ticket status)

Post 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?
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Change default ticked boxes (ticket status)

Post 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?
-Steve
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Change default ticked boxes (ticket status)

Post 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....
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Change default ticked boxes (ticket status)

Post 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...
Post Reply