freescout icon indicating copy to clipboard operation
freescout copied to clipboard

Deleting customer won’t remove from database

Open diguinho2018 opened this issue 4 years ago • 1 comments

Hey!

After some debug within the issue #1013, found that deleting customer won’t remove from database and if the same user send another ticket FreeScout will display an empty customer.

Steps I did: 1- Send one email to mailbox (first email from customer); 2- FreeScout adds the customer and ticket the right way; 3- Delete that user; 4- Send another email using the same email and customer name; 5- FreeScout won't add customer and won't display it's data in ticket; 6- Go to Customer page and try to add customer with same e-mail and name, FreeScout will say that there is already an user with that email even though there isn't.

phpMyAdmin: phpmyadmin

Ticket Page: Untitled

And in the emails table the emails are still there.

diguinho2018 avatar Feb 10 '21 13:02 diguinho2018

I think the best way to handle this is to create a "deleted" field in the database that would be used to show the deleted user with an icon next to their name to signify that they are not active in the system any longer. This way you retain data integrity.

Another method would be to build a whole structure when deleting a system user, that would ask you what you want to do with the user's current tickets/notes.

ipruthi avatar Apr 02 '22 00:04 ipruthi

3- Delete that user;

You probably mean "Delete that customer".

5- FreeScout won't add customer and won't display it's data in ticket;

We could not reproduce the issue. We've deleted the customer using CRM Module and on step 5 it appears in the ticket with all the data.

freescout-helpdesk avatar Dec 20 '22 07:12 freescout-helpdesk