Category Passive Mode?

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Category Passive Mode?

Post by hollandsedrop »

Opened with a direct link to the ticket category, the category field can be passive?

For example:
index.php?a=add&catid=1
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Category Passive Mode?

Post by Klemen »

You mean not being able to change? You can try hiding category field like this:

In index.php find

Code: Select all

    if (hesk_dbNumRows($res) == 1)
    {
    	$row = hesk_dbFetchAssoc($res);
		echo '<input type="hidden" name="category" value="'.$row['id'].'" />';
    }
and just below this add

Code: Select all

    elseif (! empty($_GET['catid']) )
    {
    	$cid = intval($_GET['catid']) or $cid = 1;
        echo '<input type="hidden" name="category" value="'.$cid.'" />';
    }
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

Re: Category Passive Mode?

Post by hollandsedrop »

Perfect!

Thanks Klemen.
Post Reply