Opened with a direct link to the ticket category, the category field can be passive?
For example:
index.php?a=add&catid=1
Category Passive Mode?
Moderator: mkoch227
Re: Category Passive Mode?
You mean not being able to change? You can try hiding category field like this:
In index.php find and just below this add
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'].'" />';
}
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 
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


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
-
- Posts: 90
- Joined: Tue Dec 30, 2008 11:29 am
Re: Category Passive Mode?
Perfect!
Thanks Klemen.
Thanks Klemen.