Error generated when moving a ticket between categories

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jgold723
Posts: 27
Joined: Wed Nov 04, 2009 6:27 pm

Error generated when moving a ticket between categories

Post by jgold723 »

Script URL:http://www.sacomaine.org/helpdesk
Version of script: 2.1
Hosting company:One World Hosting
URL of phpinfo.php:http://www.sacomaine.org/hidden/phpinfo.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
move ticket
Write your message below:
When moving a ticket from one category to another, if the user does not have access to the new category, he/she receives an error message "You do not have authorization to view tickets in this category (or something to that effect).

The ticket is moved, however.

Is there a way to turn this error off?
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You can try changing this code in the "common.inc.php" file:

Code: Select all

hesk_error($hesklang['not_authorized_tickets']);
to

Code: Select all

header('Location: admin_main.php');
That should just redirect the user to the main admin page instead of showing the error.
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
jgold723
Posts: 27
Joined: Wed Nov 04, 2009 6:27 pm

Post by jgold723 »

Excellent -- thank you!

John
Post Reply