Deleting old staff

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
TimPSNC
Posts: 41
Joined: Tue Jan 08, 2013 12:33 pm

Deleting old staff

Post by TimPSNC »

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:
Is there a way of deleting old staff, and their tickets staying as assigned to them? As staff leave my number of users is increasing, but I don't want to delete them as their tickets will show as unassigned. I would prefer it to say that it was answered and is assigned to XX, but to be able to remove them from the list of users still.

Thanks

Tim
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Deleting old staff

Post by alcazar »

Just look into "admin/manage_users.php" for the delete code and comment out the line(s) where the ticket is unassigned.
Alcazar
(nach Diktat spazierengegangen)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Deleting old staff

Post by Klemen »

Like Alcazar said. You can for example assign all tickets to default user (ID 1) when a user is deleted, by changing just the second occurrence of this code in admin/manage_users.php

Code: Select all

`owner`=0
to

Code: Select all

`owner`=1
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
TimPSNC
Posts: 41
Joined: Tue Jan 08, 2013 12:33 pm

Re: Deleting old staff

Post by TimPSNC »

Can it be changed to keep their name, even though the user doesn't exist? I would still like to go back and see that this query was answered by XX, but not see them in the list of users everywhere.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Deleting old staff

Post by Klemen »

No, at least not with major changes to the DB structure. HESK fetches that info from the database staff entries.
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
Post Reply