Script URL:
Version of script: 2.5.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I changed a staff member to admin and then back again to test something. Since then, when running a tickets by user report, Hesk isn't counting tickets completed before I changed her, and only counts them since. Is there anyway of getting them back?
Lost statistics
Moderator: mkoch227
Re: Lost statistics
I'm afraid not, because tickets that were assigned to her and she didn't have access to anymore (for example proper categories were not selected when changing back to staff) were changed to unassigned.
When modifying a user HESK will remove the user (unassign) from any tickets that the user doesn't have access to after modifying permissions.
When modifying a user HESK will remove the user (unassign) from any tickets that the user doesn't have access to after modifying permissions.
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
Re: Lost statistics
On the second though, it may be possible with a trick.
Try this:
1. BACKUP your database
2. find ID number of the user you are having problems with (in table hesk_users)
3. execute this SQL code in phpMyAdmin:
--> 3.1 change the red 1 to the staff ID - needs to be done twice
--> 3.2 change "hesk_" table prefix (twice) if you are using another prefix
So while not a perfect solution, it will assign any unassigned ticket that the user has responded to to him/her.
Try this:
1. BACKUP your database
2. find ID number of the user you are having problems with (in table hesk_users)
3. execute this SQL code in phpMyAdmin:
--> 3.1 change the red 1 to the staff ID - needs to be done twice
--> 3.2 change "hesk_" table prefix (twice) if you are using another prefix
What this will do is search for tickets owner with ID 1 has replied to. If the ticket is already assigned to someone it will ignore it, if the ticket is unassigned it will assign it to the user.UPDATE `hesk_tickets` SET `owner` = 1 WHERE `owner` = 0 AND `id` IN (SELECT DISTINCT (`replyto`) FROM `hesk_replies` WHERE `staffid`=1);
So while not a perfect solution, it will assign any unassigned ticket that the user has responded to to him/her.
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
Re: Lost statistics
Thanks, that worked perfectly
Tim
Tim