{"action":"created","comment":{"url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/comments/200596190","pull_request_review_id":134942872,"id":200596190,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDU5NjE5MA==","diff_hunk":"@@ -507,16 +507,21 @@ function ding_nodelist_add_bottom_link_submit(&$form, &$form_state) {\n  * Autocomplete function that gives the available nodes.\n  */\n function ding_nodelist_autocomplete($types, $title = '') {\n+  global $language;\n   $types = explode('|', urldecode($types));\n \n   // Fetch all published nodes.\n   $nodes = db_select('node', 'n')\n     ->fields('n', array('nid', 'title'))\n     ->condition('n.type', $types, 'IN')\n     ->condition('n.title', \"%$title%\", 'LIKE')\n-    ->condition('n.status', NODE_PUBLISHED)\n-    ->execute()\n-    ->fetchAllKeyed();\n+    ->condition('n.status', NODE_PUBLISHED);\n+\n+  if (module_exists('ding_language')) {","path":"ding_nodelist.module","position":17,"original_position":17,"commit_id":"54504c363fc10ae15b5b272be5e6781c0ca02178","original_commit_id":"54504c363fc10ae15b5b272be5e6781c0ca02178","user":{"login":"guddo","id":287648,"node_id":"MDQ6VXNlcjI4NzY0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/287648?v=4","gravatar_id":"","url":"https://api.github.com/users/guddo","html_url":"https://github.com/guddo","followers_url":"https://api.github.com/users/guddo/followers","following_url":"https://api.github.com/users/guddo/following{/other_user}","gists_url":"https://api.github.com/users/guddo/gists{/gist_id}","starred_url":"https://api.github.com/users/guddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guddo/subscriptions","organizations_url":"https://api.github.com/users/guddo/orgs","repos_url":"https://api.github.com/users/guddo/repos","events_url":"https://api.github.com/users/guddo/events{/privacy}","received_events_url":"https://api.github.com/users/guddo/received_events","type":"User","site_admin":false},"body":"> adds unique identifier to a query which will be altered further, as we still can perform different code changes in ding_nodelist we can leave it as it is (IMHO).\r\n\r\nUnderstood - then maybe?\r\n```\r\nif (module_exists('ding_language')) {\r\n  ->addTag('language')\r\n} \r\n```","created_at":"2018-07-06T09:17:17Z","updated_at":"2018-07-06T09:17:17Z","html_url":"https://github.com/easySuite/ding_nodelist/pull/45#discussion_r200596190","pull_request_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/comments/200596190"},"html":{"href":"https://github.com/easySuite/ding_nodelist/pull/45#discussion_r200596190"},"pull_request":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45"}},"in_reply_to_id":200562268},"pull_request":{"url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45","id":190935778,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwOTM1Nzc4","html_url":"https://github.com/easySuite/ding_nodelist/pull/45","diff_url":"https://github.com/easySuite/ding_nodelist/pull/45.diff","patch_url":"https://github.com/easySuite/ding_nodelist/pull/45.patch","issue_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/45","number":45,"state":"open","locked":false,"title":"EASYOPAC-832 - Language support for nodelists.","user":{"login":"guddo","id":287648,"node_id":"MDQ6VXNlcjI4NzY0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/287648?v=4","gravatar_id":"","url":"https://api.github.com/users/guddo","html_url":"https://github.com/guddo","followers_url":"https://api.github.com/users/guddo/followers","following_url":"https://api.github.com/users/guddo/following{/other_user}","gists_url":"https://api.github.com/users/guddo/gists{/gist_id}","starred_url":"https://api.github.com/users/guddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guddo/subscriptions","organizations_url":"https://api.github.com/users/guddo/orgs","repos_url":"https://api.github.com/users/guddo/repos","events_url":"https://api.github.com/users/guddo/events{/privacy}","received_events_url":"https://api.github.com/users/guddo/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-28T13:49:32Z","updated_at":"2018-07-06T09:17:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23cfb7b2f1af9e6b398b5e7de165993b826792ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45/commits","review_comments_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45/comments","review_comment_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/45/comments","statuses_url":"https://api.github.com/repos/easySuite/ding_nodelist/statuses/54504c363fc10ae15b5b272be5e6781c0ca02178","head":{"label":"easySuite:develop-gronbib","ref":"develop-gronbib","sha":"54504c363fc10ae15b5b272be5e6781c0ca02178","user":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"repo":{"id":22372433,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM3MjQzMw==","name":"ding_nodelist","full_name":"easySuite/ding_nodelist","owner":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easySuite/ding_nodelist","description":"Nodelist module allows to build customizeable lists of content using different widgets.","fork":false,"url":"https://api.github.com/repos/easySuite/ding_nodelist","forks_url":"https://api.github.com/repos/easySuite/ding_nodelist/forks","keys_url":"https://api.github.com/repos/easySuite/ding_nodelist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easySuite/ding_nodelist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easySuite/ding_nodelist/teams","hooks_url":"https://api.github.com/repos/easySuite/ding_nodelist/hooks","issue_events_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/events{/number}","events_url":"https://api.github.com/repos/easySuite/ding_nodelist/events","assignees_url":"https://api.github.com/repos/easySuite/ding_nodelist/assignees{/user}","branches_url":"https://api.github.com/repos/easySuite/ding_nodelist/branches{/branch}","tags_url":"https://api.github.com/repos/easySuite/ding_nodelist/tags","blobs_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/refs{/sha}","trees_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easySuite/ding_nodelist/statuses/{sha}","languages_url":"https://api.github.com/repos/easySuite/ding_nodelist/languages","stargazers_url":"https://api.github.com/repos/easySuite/ding_nodelist/stargazers","contributors_url":"https://api.github.com/repos/easySuite/ding_nodelist/contributors","subscribers_url":"https://api.github.com/repos/easySuite/ding_nodelist/subscribers","subscription_url":"https://api.github.com/repos/easySuite/ding_nodelist/subscription","commits_url":"https://api.github.com/repos/easySuite/ding_nodelist/commits{/sha}","git_commits_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/commits{/sha}","comments_url":"https://api.github.com/repos/easySuite/ding_nodelist/comments{/number}","issue_comment_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/comments{/number}","contents_url":"https://api.github.com/repos/easySuite/ding_nodelist/contents/{+path}","compare_url":"https://api.github.com/repos/easySuite/ding_nodelist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easySuite/ding_nodelist/merges","archive_url":"https://api.github.com/repos/easySuite/ding_nodelist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easySuite/ding_nodelist/downloads","issues_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues{/number}","pulls_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls{/number}","milestones_url":"https://api.github.com/repos/easySuite/ding_nodelist/milestones{/number}","notifications_url":"https://api.github.com/repos/easySuite/ding_nodelist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easySuite/ding_nodelist/labels{/name}","releases_url":"https://api.github.com/repos/easySuite/ding_nodelist/releases{/id}","deployments_url":"https://api.github.com/repos/easySuite/ding_nodelist/deployments","created_at":"2014-07-29T08:12:35Z","updated_at":"2018-06-28T07:50:01Z","pushed_at":"2018-07-05T13:12:19Z","git_url":"git://github.com/easySuite/ding_nodelist.git","ssh_url":"git@github.com:easySuite/ding_nodelist.git","clone_url":"https://github.com/easySuite/ding_nodelist.git","svn_url":"https://github.com/easySuite/ding_nodelist","homepage":"","size":1438,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"easySuite:development","ref":"development","sha":"e1643a4ae1e08ff36a67ef3fcc34fca846041dfe","user":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"repo":{"id":22372433,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM3MjQzMw==","name":"ding_nodelist","full_name":"easySuite/ding_nodelist","owner":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easySuite/ding_nodelist","description":"Nodelist module allows to build customizeable lists of content using different widgets.","fork":false,"url":"https://api.github.com/repos/easySuite/ding_nodelist","forks_url":"https://api.github.com/repos/easySuite/ding_nodelist/forks","keys_url":"https://api.github.com/repos/easySuite/ding_nodelist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easySuite/ding_nodelist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easySuite/ding_nodelist/teams","hooks_url":"https://api.github.com/repos/easySuite/ding_nodelist/hooks","issue_events_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/events{/number}","events_url":"https://api.github.com/repos/easySuite/ding_nodelist/events","assignees_url":"https://api.github.com/repos/easySuite/ding_nodelist/assignees{/user}","branches_url":"https://api.github.com/repos/easySuite/ding_nodelist/branches{/branch}","tags_url":"https://api.github.com/repos/easySuite/ding_nodelist/tags","blobs_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/refs{/sha}","trees_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easySuite/ding_nodelist/statuses/{sha}","languages_url":"https://api.github.com/repos/easySuite/ding_nodelist/languages","stargazers_url":"https://api.github.com/repos/easySuite/ding_nodelist/stargazers","contributors_url":"https://api.github.com/repos/easySuite/ding_nodelist/contributors","subscribers_url":"https://api.github.com/repos/easySuite/ding_nodelist/subscribers","subscription_url":"https://api.github.com/repos/easySuite/ding_nodelist/subscription","commits_url":"https://api.github.com/repos/easySuite/ding_nodelist/commits{/sha}","git_commits_url":"https://api.github.com/repos/easySuite/ding_nodelist/git/commits{/sha}","comments_url":"https://api.github.com/repos/easySuite/ding_nodelist/comments{/number}","issue_comment_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues/comments{/number}","contents_url":"https://api.github.com/repos/easySuite/ding_nodelist/contents/{+path}","compare_url":"https://api.github.com/repos/easySuite/ding_nodelist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easySuite/ding_nodelist/merges","archive_url":"https://api.github.com/repos/easySuite/ding_nodelist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easySuite/ding_nodelist/downloads","issues_url":"https://api.github.com/repos/easySuite/ding_nodelist/issues{/number}","pulls_url":"https://api.github.com/repos/easySuite/ding_nodelist/pulls{/number}","milestones_url":"https://api.github.com/repos/easySuite/ding_nodelist/milestones{/number}","notifications_url":"https://api.github.com/repos/easySuite/ding_nodelist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easySuite/ding_nodelist/labels{/name}","releases_url":"https://api.github.com/repos/easySuite/ding_nodelist/releases{/id}","deployments_url":"https://api.github.com/repos/easySuite/ding_nodelist/deployments","created_at":"2014-07-29T08:12:35Z","updated_at":"2018-06-28T07:50:01Z","pushed_at":"2018-07-05T13:12:19Z","git_url":"git://github.com/easySuite/ding_nodelist.git","ssh_url":"git@github.com:easySuite/ding_nodelist.git","clone_url":"https://github.com/easySuite/ding_nodelist.git","svn_url":"https://github.com/easySuite/ding_nodelist","homepage":"","size":1438,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45"},"html":{"href":"https://github.com/easySuite/ding_nodelist/pull/45"},"issue":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/issues/45"},"comments":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/easySuite/ding_nodelist/statuses/54504c363fc10ae15b5b272be5e6781c0ca02178"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"guddo"}}