Page 1 of 1

Deleting old staff

Posted: Thu Jun 05, 2014 10:22 am
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

Re: Deleting old staff

Posted: Fri Jun 06, 2014 12:43 pm
by alcazar
Just look into "admin/manage_users.php" for the delete code and comment out the line(s) where the ticket is unassigned.

Re: Deleting old staff

Posted: Sat Jun 07, 2014 11:49 am
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

Re: Deleting old staff

Posted: Mon Jun 09, 2014 9:12 am
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.

Re: Deleting old staff

Posted: Mon Jun 09, 2014 10:10 am
by Klemen
No, at least not with major changes to the DB structure. HESK fetches that info from the database staff entries.