Page 1 of 1

Error generated when moving a ticket between categories

Posted: Tue Feb 23, 2010 5:01 pm
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?

Posted: Wed Feb 24, 2010 5:46 pm
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.

Posted: Wed Feb 24, 2010 6:35 pm
by jgold723
Excellent -- thank you!

John