SimpleDesk

SimpleDesk! => SimpleDesk Support => Topic started by: Ferity on October 11, 2012, 11:07:59 AM

Title: Editing the link
Post by: Ferity on October 11, 2012, 11:07:59 AM
Hey again,
this might be an easy fix, but I don't know how to do that myself.
I already mentioned this in a previous, but here I will explain it in detail.

When you are currently watching the tickets of one category/ department and click on 'Post a Ticket' it creates a Ticket for the Department you were checking the Tickets of.
For example if you watch 'Account Recovery', it will automatically open the Account Recovery custom fields and there won't be an option to change the departments.
If Account Recovery is the 2nd department, the link would look like the following: ?action=helpdesk;sa=newticket;dept=2

So basically I'm just wondering how to make it so whenever you click on 'Post new Ticket' it links to ?action=helpdesk;sa=newticket without the ';dept=' addition.

Thanks for reading, Ferity
Title: Re: Editing the link
Post by: venguard223 on October 11, 2012, 03:07:30 PM
It *might* be sufficient to find this in Sources/sd_source/SimpleDesk.php

'newticket' => array(
'text' => 'shd_new_ticket',
'test' => 'can_new_ticket',
'lang' => true,
'url' => $scripturl . '?action=helpdesk;sa=newticket' . $context['shd_dept_link'],
),
'newticketproxy' => array(
'text' => 'shd_new_ticket_proxy',
'test' => 'can_proxy_ticket',
'lang' => true,
'url' => $scripturl . '?action=helpdesk;sa=newticket;proxy' . $context['shd_dept_link'],
),


and replace with
'newticket' => array(
'text' => 'shd_new_ticket',
'test' => 'can_new_ticket',
'lang' => true,
'url' => $scripturl . '?action=helpdesk;sa=newticket',
),
'newticketproxy' => array(
'text' => 'shd_new_ticket_proxy',
'test' => 'can_proxy_ticket',
'lang' => true,
'url' => $scripturl . '?action=helpdesk;sa=newticket;proxy',
),


I don't know, haven't tested, I spent long enough making it specifically what you don't want it to do...
Title: Re: Editing the link
Post by: Ferity on October 11, 2012, 03:38:24 PM
Thanks alot! :-)