{"action":"created","comment":{"url":"https://api.github.com/repos/glpi-project/glpi/pulls/comments/83441111","pull_request_review_id":4286502,"id":83441111,"diff_hunk":"@@ -231,11 +231,11 @@ static function displayLastAlert($itemtype, $items_id) {\n       global $DB;\n \n       if ($items_id) {\n-         $iter = $DB->request($this->getTable(), ['FIELDS'   => 'date',\n-                                                  'ORDER'    => 'date DESC',\n-                                                  'LIMIT'    => 1,\n-                                                  'itemtype' => $itemtype,\n-                                                  'items_id' => $items_id]);\n+         $iter = $DB->request(getTableForItemType(__CLASS__), ['FIELDS'   => 'date',\n+                                                               'ORDER'    => 'date DESC',\n+                                                               'LIMIT'    => 1,\n+                                                               'itemtype' => $itemtype,\n+                                                               'items_id' => $items_id]);\n          if ($row = $iter->next()) {","path":"inc/alert.class.php","position":null,"original_position":14,"commit_id":"69e670302647b23266b3cec91cfe4b44bccfe968","original_commit_id":"11cc766194bc4bce8ab08ccd8c6a2e925f68b0a7","user":{"login":"orthagh","id":418844,"avatar_url":"https://avatars.githubusercontent.com/u/418844?v=3","gravatar_id":"","url":"https://api.github.com/users/orthagh","html_url":"https://github.com/orthagh","followers_url":"https://api.github.com/users/orthagh/followers","following_url":"https://api.github.com/users/orthagh/following{/other_user}","gists_url":"https://api.github.com/users/orthagh/gists{/gist_id}","starred_url":"https://api.github.com/users/orthagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthagh/subscriptions","organizations_url":"https://api.github.com/users/orthagh/orgs","repos_url":"https://api.github.com/users/orthagh/repos","events_url":"https://api.github.com/users/orthagh/events{/privacy}","received_events_url":"https://api.github.com/users/orthagh/received_events","type":"User","site_admin":false},"body":"Sure, i copypasted from the original commit.","created_at":"2016-10-14T15:07:36Z","updated_at":"2016-10-14T15:07:36Z","html_url":"https://github.com/glpi-project/glpi/pull/1164#discussion_r83441111","pull_request_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1164","_links":{"self":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/comments/83441111"},"html":{"href":"https://github.com/glpi-project/glpi/pull/1164#discussion_r83441111"},"pull_request":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1164"}}},"pull_request":{"url":"https://api.github.com/repos/glpi-project/glpi/pulls/1164","id":89396511,"html_url":"https://github.com/glpi-project/glpi/pull/1164","diff_url":"https://github.com/glpi-project/glpi/pull/1164.diff","patch_url":"https://github.com/glpi-project/glpi/pull/1164.patch","issue_url":"https://api.github.com/repos/glpi-project/glpi/issues/1164","number":1164,"state":"open","locked":false,"title":"remove this in static function","user":{"login":"orthagh","id":418844,"avatar_url":"https://avatars.githubusercontent.com/u/418844?v=3","gravatar_id":"","url":"https://api.github.com/users/orthagh","html_url":"https://github.com/orthagh","followers_url":"https://api.github.com/users/orthagh/followers","following_url":"https://api.github.com/users/orthagh/following{/other_user}","gists_url":"https://api.github.com/users/orthagh/gists{/gist_id}","starred_url":"https://api.github.com/users/orthagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthagh/subscriptions","organizations_url":"https://api.github.com/users/orthagh/orgs","repos_url":"https://api.github.com/users/orthagh/repos","events_url":"https://api.github.com/users/orthagh/events{/privacy}","received_events_url":"https://api.github.com/users/orthagh/received_events","type":"User","site_admin":false},"body":"fix #1146\r\nSince fb4b66b","created_at":"2016-10-14T14:40:11Z","updated_at":"2016-10-14T15:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a0254d176ba345dae16061040406433c6071782","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1164/commits","review_comments_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1164/comments","review_comment_url":"https://api.github.com/repos/glpi-project/glpi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/1164/comments","statuses_url":"https://api.github.com/repos/glpi-project/glpi/statuses/69e670302647b23266b3cec91cfe4b44bccfe968","head":{"label":"orthagh:fix_1146","ref":"fix_1146","sha":"69e670302647b23266b3cec91cfe4b44bccfe968","user":{"login":"orthagh","id":418844,"avatar_url":"https://avatars.githubusercontent.com/u/418844?v=3","gravatar_id":"","url":"https://api.github.com/users/orthagh","html_url":"https://github.com/orthagh","followers_url":"https://api.github.com/users/orthagh/followers","following_url":"https://api.github.com/users/orthagh/following{/other_user}","gists_url":"https://api.github.com/users/orthagh/gists{/gist_id}","starred_url":"https://api.github.com/users/orthagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthagh/subscriptions","organizations_url":"https://api.github.com/users/orthagh/orgs","repos_url":"https://api.github.com/users/orthagh/repos","events_url":"https://api.github.com/users/orthagh/events{/privacy}","received_events_url":"https://api.github.com/users/orthagh/received_events","type":"User","site_admin":false},"repo":{"id":40602932,"name":"glpi","full_name":"orthagh/glpi","owner":{"login":"orthagh","id":418844,"avatar_url":"https://avatars.githubusercontent.com/u/418844?v=3","gravatar_id":"","url":"https://api.github.com/users/orthagh","html_url":"https://github.com/orthagh","followers_url":"https://api.github.com/users/orthagh/followers","following_url":"https://api.github.com/users/orthagh/following{/other_user}","gists_url":"https://api.github.com/users/orthagh/gists{/gist_id}","starred_url":"https://api.github.com/users/orthagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthagh/subscriptions","organizations_url":"https://api.github.com/users/orthagh/orgs","repos_url":"https://api.github.com/users/orthagh/repos","events_url":"https://api.github.com/users/orthagh/events{/privacy}","received_events_url":"https://api.github.com/users/orthagh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/orthagh/glpi","description":"Official repository for GLPi 0.x","fork":true,"url":"https://api.github.com/repos/orthagh/glpi","forks_url":"https://api.github.com/repos/orthagh/glpi/forks","keys_url":"https://api.github.com/repos/orthagh/glpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orthagh/glpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orthagh/glpi/teams","hooks_url":"https://api.github.com/repos/orthagh/glpi/hooks","issue_events_url":"https://api.github.com/repos/orthagh/glpi/issues/events{/number}","events_url":"https://api.github.com/repos/orthagh/glpi/events","assignees_url":"https://api.github.com/repos/orthagh/glpi/assignees{/user}","branches_url":"https://api.github.com/repos/orthagh/glpi/branches{/branch}","tags_url":"https://api.github.com/repos/orthagh/glpi/tags","blobs_url":"https://api.github.com/repos/orthagh/glpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orthagh/glpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orthagh/glpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/orthagh/glpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orthagh/glpi/statuses/{sha}","languages_url":"https://api.github.com/repos/orthagh/glpi/languages","stargazers_url":"https://api.github.com/repos/orthagh/glpi/stargazers","contributors_url":"https://api.github.com/repos/orthagh/glpi/contributors","subscribers_url":"https://api.github.com/repos/orthagh/glpi/subscribers","subscription_url":"https://api.github.com/repos/orthagh/glpi/subscription","commits_url":"https://api.github.com/repos/orthagh/glpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/orthagh/glpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/orthagh/glpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/orthagh/glpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/orthagh/glpi/contents/{+path}","compare_url":"https://api.github.com/repos/orthagh/glpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orthagh/glpi/merges","archive_url":"https://api.github.com/repos/orthagh/glpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orthagh/glpi/downloads","issues_url":"https://api.github.com/repos/orthagh/glpi/issues{/number}","pulls_url":"https://api.github.com/repos/orthagh/glpi/pulls{/number}","milestones_url":"https://api.github.com/repos/orthagh/glpi/milestones{/number}","notifications_url":"https://api.github.com/repos/orthagh/glpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orthagh/glpi/labels{/name}","releases_url":"https://api.github.com/repos/orthagh/glpi/releases{/id}","deployments_url":"https://api.github.com/repos/orthagh/glpi/deployments","created_at":"2015-08-12T13:43:15Z","updated_at":"2016-04-01T07:58:57Z","pushed_at":"2016-10-14T15:07:11Z","git_url":"git://github.com/orthagh/glpi.git","ssh_url":"git@github.com:orthagh/glpi.git","clone_url":"https://github.com/orthagh/glpi.git","svn_url":"https://github.com/orthagh/glpi","homepage":"","size":268979,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"glpi-project:master","ref":"master","sha":"dd92ba9c90ce2f44fe77e70a0fce76332b3febc6","user":{"login":"glpi-project","id":13361707,"avatar_url":"https://avatars.githubusercontent.com/u/13361707?v=3","gravatar_id":"","url":"https://api.github.com/users/glpi-project","html_url":"https://github.com/glpi-project","followers_url":"https://api.github.com/users/glpi-project/followers","following_url":"https://api.github.com/users/glpi-project/following{/other_user}","gists_url":"https://api.github.com/users/glpi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/glpi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glpi-project/subscriptions","organizations_url":"https://api.github.com/users/glpi-project/orgs","repos_url":"https://api.github.com/users/glpi-project/repos","events_url":"https://api.github.com/users/glpi-project/events{/privacy}","received_events_url":"https://api.github.com/users/glpi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":39182755,"name":"glpi","full_name":"glpi-project/glpi","owner":{"login":"glpi-project","id":13361707,"avatar_url":"https://avatars.githubusercontent.com/u/13361707?v=3","gravatar_id":"","url":"https://api.github.com/users/glpi-project","html_url":"https://github.com/glpi-project","followers_url":"https://api.github.com/users/glpi-project/followers","following_url":"https://api.github.com/users/glpi-project/following{/other_user}","gists_url":"https://api.github.com/users/glpi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/glpi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glpi-project/subscriptions","organizations_url":"https://api.github.com/users/glpi-project/orgs","repos_url":"https://api.github.com/users/glpi-project/repos","events_url":"https://api.github.com/users/glpi-project/events{/privacy}","received_events_url":"https://api.github.com/users/glpi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glpi-project/glpi","description":"GLPi stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing.","fork":false,"url":"https://api.github.com/repos/glpi-project/glpi","forks_url":"https://api.github.com/repos/glpi-project/glpi/forks","keys_url":"https://api.github.com/repos/glpi-project/glpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glpi-project/glpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glpi-project/glpi/teams","hooks_url":"https://api.github.com/repos/glpi-project/glpi/hooks","issue_events_url":"https://api.github.com/repos/glpi-project/glpi/issues/events{/number}","events_url":"https://api.github.com/repos/glpi-project/glpi/events","assignees_url":"https://api.github.com/repos/glpi-project/glpi/assignees{/user}","branches_url":"https://api.github.com/repos/glpi-project/glpi/branches{/branch}","tags_url":"https://api.github.com/repos/glpi-project/glpi/tags","blobs_url":"https://api.github.com/repos/glpi-project/glpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glpi-project/glpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glpi-project/glpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/glpi-project/glpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glpi-project/glpi/statuses/{sha}","languages_url":"https://api.github.com/repos/glpi-project/glpi/languages","stargazers_url":"https://api.github.com/repos/glpi-project/glpi/stargazers","contributors_url":"https://api.github.com/repos/glpi-project/glpi/contributors","subscribers_url":"https://api.github.com/repos/glpi-project/glpi/subscribers","subscription_url":"https://api.github.com/repos/glpi-project/glpi/subscription","commits_url":"https://api.github.com/repos/glpi-project/glpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/glpi-project/glpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/glpi-project/glpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/glpi-project/glpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/glpi-project/glpi/contents/{+path}","compare_url":"https://api.github.com/repos/glpi-project/glpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glpi-project/glpi/merges","archive_url":"https://api.github.com/repos/glpi-project/glpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glpi-project/glpi/downloads","issues_url":"https://api.github.com/repos/glpi-project/glpi/issues{/number}","pulls_url":"https://api.github.com/repos/glpi-project/glpi/pulls{/number}","milestones_url":"https://api.github.com/repos/glpi-project/glpi/milestones{/number}","notifications_url":"https://api.github.com/repos/glpi-project/glpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glpi-project/glpi/labels{/name}","releases_url":"https://api.github.com/repos/glpi-project/glpi/releases{/id}","deployments_url":"https://api.github.com/repos/glpi-project/glpi/deployments","created_at":"2015-07-16T07:20:21Z","updated_at":"2016-10-14T08:41:39Z","pushed_at":"2016-10-14T15:07:12Z","git_url":"git://github.com/glpi-project/glpi.git","ssh_url":"git@github.com:glpi-project/glpi.git","clone_url":"https://github.com/glpi-project/glpi.git","svn_url":"https://github.com/glpi-project/glpi","homepage":"http://glpi-project.org/","size":275605,"stargazers_count":205,"watchers_count":205,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":164,"forks":122,"open_issues":164,"watchers":205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1164"},"html":{"href":"https://github.com/glpi-project/glpi/pull/1164"},"issue":{"href":"https://api.github.com/repos/glpi-project/glpi/issues/1164"},"comments":{"href":"https://api.github.com/repos/glpi-project/glpi/issues/1164/comments"},"review_comments":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1164/comments"},"review_comment":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1164/commits"},"statuses":{"href":"https://api.github.com/repos/glpi-project/glpi/statuses/69e670302647b23266b3cec91cfe4b44bccfe968"}}}}
{"actor":{"display_login":"orthagh"}}