{"action":"created","issue":{"url":"https://api.github.com/repos/opencart/opencart/issues/6770","repository_url":"https://api.github.com/repos/opencart/opencart","labels_url":"https://api.github.com/repos/opencart/opencart/issues/6770/labels{/name}","comments_url":"https://api.github.com/repos/opencart/opencart/issues/6770/comments","events_url":"https://api.github.com/repos/opencart/opencart/issues/6770/events","html_url":"https://github.com/opencart/opencart/issues/6770","id":345192406,"node_id":"MDU6SXNzdWUzNDUxOTI0MDY=","number":6770,"title":"Deleting customer doesn't delete from customer_history table","user":{"login":"ADDCreative","id":2039130,"node_id":"MDQ6VXNlcjIwMzkxMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2039130?v=4","gravatar_id":"","url":"https://api.github.com/users/ADDCreative","html_url":"https://github.com/ADDCreative","followers_url":"https://api.github.com/users/ADDCreative/followers","following_url":"https://api.github.com/users/ADDCreative/following{/other_user}","gists_url":"https://api.github.com/users/ADDCreative/gists{/gist_id}","starred_url":"https://api.github.com/users/ADDCreative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADDCreative/subscriptions","organizations_url":"https://api.github.com/users/ADDCreative/orgs","repos_url":"https://api.github.com/users/ADDCreative/repos","events_url":"https://api.github.com/users/ADDCreative/events{/privacy}","received_events_url":"https://api.github.com/users/ADDCreative/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-27T11:32:03Z","updated_at":"2018-09-28T08:57:27Z","closed_at":"2018-09-28T08:57:27Z","author_association":"CONTRIBUTOR","body":"Looking at the deleteCustomer method (https://github.com/opencart/opencart/blob/3.1.0.0_a1/upload/admin/model/customer/customer.php#L49-L59).  The following probably needs adding to also remove the customers history.\r\n\r\n```$this->db->query(\"DELETE FROM \" . DB_PREFIX . \"customer_history WHERE customer_id = '\" . (int)$customer_id . \"'\");```"},"comment":{"url":"https://api.github.com/repos/opencart/opencart/issues/comments/425370169","html_url":"https://github.com/opencart/opencart/issues/6770#issuecomment-425370169","issue_url":"https://api.github.com/repos/opencart/opencart/issues/6770","id":425370169,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM3MDE2OQ==","user":{"login":"danielkerr","id":5079756,"node_id":"MDQ6VXNlcjUwNzk3NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/5079756?v=4","gravatar_id":"","url":"https://api.github.com/users/danielkerr","html_url":"https://github.com/danielkerr","followers_url":"https://api.github.com/users/danielkerr/followers","following_url":"https://api.github.com/users/danielkerr/following{/other_user}","gists_url":"https://api.github.com/users/danielkerr/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkerr/subscriptions","organizations_url":"https://api.github.com/users/danielkerr/orgs","repos_url":"https://api.github.com/users/danielkerr/repos","events_url":"https://api.github.com/users/danielkerr/events{/privacy}","received_events_url":"https://api.github.com/users/danielkerr/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T08:57:27Z","updated_at":"2018-09-28T08:57:27Z","author_association":"CONTRIBUTOR","body":"ok added wishlist as well but all the opther tables seem to be there."}}
{"actor":{"display_login":"danielkerr"}}