{"action":"created","issue":{"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/85","labels_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/85/comments","events_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/85/events","html_url":"https://github.com/avenirer/CodeIgniter-MY_Model/issues/85","id":115281542,"number":85,"title":"How do we integrate deleted_by & deleted_by_ip field into MY_Model ?","user":{"login":"prashantnirgun","id":7609215,"avatar_url":"https://avatars.githubusercontent.com/u/7609215?v=3","gravatar_id":"","url":"https://api.github.com/users/prashantnirgun","html_url":"https://github.com/prashantnirgun","followers_url":"https://api.github.com/users/prashantnirgun/followers","following_url":"https://api.github.com/users/prashantnirgun/following{/other_user}","gists_url":"https://api.github.com/users/prashantnirgun/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantnirgun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantnirgun/subscriptions","organizations_url":"https://api.github.com/users/prashantnirgun/orgs","repos_url":"https://api.github.com/users/prashantnirgun/repos","events_url":"https://api.github.com/users/prashantnirgun/events{/privacy}","received_events_url":"https://api.github.com/users/prashantnirgun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-11-05T13:14:50Z","updated_at":"2015-11-10T07:50:17Z","closed_at":null,"body":"considering we are using ion_auth library\r\n\r\n//where to add the entry as now a days this become necessary columns in every table for me so I need to automise the process\r\n$board['deleted_by'] = $this->ion_auth->get_user_id();\r\n$board['deleted_from_ip'] = $this->ion_auth->user()->row()->ip_address;\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/comments/155348695","html_url":"https://github.com/avenirer/CodeIgniter-MY_Model/issues/85#issuecomment-155348695","issue_url":"https://api.github.com/repos/avenirer/CodeIgniter-MY_Model/issues/85","id":155348695,"user":{"login":"prashantnirgun","id":7609215,"avatar_url":"https://avatars.githubusercontent.com/u/7609215?v=3","gravatar_id":"","url":"https://api.github.com/users/prashantnirgun","html_url":"https://github.com/prashantnirgun","followers_url":"https://api.github.com/users/prashantnirgun/followers","following_url":"https://api.github.com/users/prashantnirgun/following{/other_user}","gists_url":"https://api.github.com/users/prashantnirgun/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantnirgun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantnirgun/subscriptions","organizations_url":"https://api.github.com/users/prashantnirgun/orgs","repos_url":"https://api.github.com/users/prashantnirgun/repos","events_url":"https://api.github.com/users/prashantnirgun/events{/privacy}","received_events_url":"https://api.github.com/users/prashantnirgun/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T07:50:17Z","updated_at":"2015-11-10T07:50:17Z","body":"I think Issue is resolved final changes are as follows anybody please check and confirm this\r\n\r\n709 /* if(!empty($before_soft_delete)) // we been handling at line no 730\r\n710            {\r\n711                $to_update = $this->trigger('before_soft_delete',$to_update);\r\n712  } */\r\n713 if(!empty($this->before_delete)) //original was 713 if(!empty($before_delete))\r\n714            {\r\n715                  $to_update = $this->trigger('before_delete',$to_update);\r\n716            }\r\n\r\n730 $row = $this->trigger('before_soft_delete',$row); //previously it was commented.\r\n731 $row[$this->_deleted_at_field] = $this->_the_timestamp();\r\n"}}