payload: {"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/272832486","pull_request_review_id":223580891,"id":272832486,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MjgzMjQ4Ng==","diff_hunk":"@@ -93,30 +139,28 @@\n \n // Column-specific filtering.\n //\n+$newWhere = array();\n for ($i = 0; $i < count($aColumns); ++$i) {\n     $colname = $aColumns[$i];\n     if (isset($_GET[\"bSearchable_$i\"]) && $_GET[\"bSearchable_$i\"] == \"true\" && $_GET[\"sSearch_$i\"] != '') {\n-        $where .= $where ? ' AND' : 'WHERE';\n         $sSearch = add_escape_custom($_GET[\"sSearch_$i\"]);\n         if ($colname == 'name') {\n-            if ($searchMethodInPatientList) { // exact search\n-                $where .= \" ( \" .\n-                    \"lname LIKE '$sSearch' OR \" .\n-                    \"fname LIKE '$sSearch' OR \" .\n-                    \"mname LIKE '$sSearch' )\";\n-            } else {  // like search\n-                $where .= \" ( \" .\n-                    \"lname LIKE '$sSearch%' OR \" .\n-                    \"fname LIKE '$sSearch%' OR \" .\n-                    \"mname LIKE '$sSearch%' )\";\n-            }\n-        } elseif ($searchMethodInPatientList) {\n-            $where .= \" `\" . escape_sql_column_name($colname, array('patient_data')) . \"` LIKE '$sSearch'\"; // exact search\n+            $newWhere[] = \" ( \" .\n+                \"lname LIKE '\".prepareMatchSearch($sSearch, \"R\", $searchMethodInPatientList).\"' OR \" .\n+                \"fname LIKE '\".prepareMatchSearch($sSearch, \"R\", $searchMethodInPatientList).\"' OR \" .\n+                \"mname LIKE '\".prepareMatchSearch($sSearch, \"R\", $searchMethodInPatientList).\"' )\";\n         } else {","path":"interface/main/finder/dynamic_finder_ajax.php","position":124,"original_position":124,"commit_id":"b8f9c8b62f7ebdab8f160c796de58d03d1f7a0f2","original_commit_id":"b8f9c8b62f7ebdab8f160c796de58d03d1f7a0f2","user":{"login":"yurige-matrix","id":45194408,"node_id":"MDQ6VXNlcjQ1MTk0NDA4","avatar_url":"https://avatars0.githubusercontent.com/u/45194408?v=4","gravatar_id":"","url":"https://api.github.com/users/yurige-matrix","html_url":"https://github.com/yurige-matrix","followers_url":"https://api.github.com/users/yurige-matrix/followers","following_url":"https://api.github.com/users/yurige-matrix/following{/other_user}","gists_url":"https://api.github.com/users/yurige-matrix/gists{/gist_id}","starred_url":"https://api.github.com/users/yurige-matrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurige-matrix/subscriptions","organizations_url":"https://api.github.com/users/yurige-matrix/orgs","repos_url":"https://api.github.com/users/yurige-matrix/repos","events_url":"https://api.github.com/users/yurige-matrix/events{/privacy}","received_events_url":"https://api.github.com/users/yurige-matrix/received_events","type":"User","site_admin":false},"body":"Everything remained as before, just slightly improved the code.","created_at":"2019-04-07T12:30:34Z","updated_at":"2019-04-07T12:30:34Z","html_url":"https://github.com/openemr/openemr/pull/2020#discussion_r272832486","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/2020","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/272832486"},"html":{"href":"https://github.com/openemr/openemr/pull/2020#discussion_r272832486"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/2020"}},"in_reply_to_id":272464870},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/2020","id":236435067,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NDM1MDY3","html_url":"https://github.com/openemr/openemr/pull/2020","diff_url":"https://github.com/openemr/openemr/pull/2020.diff","patch_url":"https://github.com/openemr/openemr/pull/2020.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/2020","number":2020,"state":"open","locked":false,"title":"Fixed search in Patient List when we search in different languages ","user":{"login":"yurige-matrix","id":45194408,"node_id":"MDQ6VXNlcjQ1MTk0NDA4","avatar_url":"https://avatars0.githubusercontent.com/u/45194408?v=4","gravatar_id":"","url":"https://api.github.com/users/yurige-matrix","html_url":"https://github.com/yurige-matrix","followers_url":"https://api.github.com/users/yurige-matrix/followers","following_url":"https://api.github.com/users/yurige-matrix/following{/other_user}","gists_url":"https://api.github.com/users/yurige-matrix/gists{/gist_id}","starred_url":"https://api.github.com/users/yurige-matrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurige-matrix/subscriptions","organizations_url":"https://api.github.com/users/yurige-matrix/orgs","repos_url":"https://api.github.com/users/yurige-matrix/repos","events_url":"https://api.github.com/users/yurige-matrix/events{/privacy}","received_events_url":"https://api.github.com/users/yurige-matrix/received_events","type":"User","site_admin":false},"body":"Fixed search in Patient List when we search in different languages and dates in other formats.","created_at":"2018-12-06T07:42:22Z","updated_at":"2019-04-07T12:30:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44dd136f2abdbbab44ff47be38aa641bbf818ac0","assignee":{"login":"bradymiller","id":278968,"node_id":"MDQ6VXNlcjI3ODk2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/278968?v=4","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"assignees":[{"login":"bradymiller","id":278968,"node_id":"MDQ6VXNlcjI3ODk2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/278968?v=4","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":433468182,"node_id":"MDU6TGFiZWw0MzM0NjgxODI=","url":"https://api.github.com/repos/openemr/openemr/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"fbca04","default":false},{"id":433468358,"node_id":"MDU6TGFiZWw0MzM0NjgzNTg=","url":"https://api.github.com/repos/openemr/openemr/labels/Status:%20Needs%20Work","name":"Status: Needs Work","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/2020/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/2020/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/2020/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/b8f9c8b62f7ebdab8f160c796de58d03d1f7a0f2","head":{"label":"matrix-israel:FixSearchPatientList","ref":"FixSearchPatientList","sha":"b8f9c8b62f7ebdab8f160c796de58d03d1f7a0f2","user":{"login":"matrix-israel","id":17746552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzQ2NTUy","avatar_url":"https://avatars2.githubusercontent.com/u/17746552?v=4","gravatar_id":"","url":"https://api.github.com/users/matrix-israel","html_url":"https://github.com/matrix-israel","followers_url":"https://api.github.com/users/matrix-israel/followers","following_url":"https://api.github.com/users/matrix-israel/following{/other_user}","gists_url":"https://api.github.com/users/matrix-israel/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-israel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-israel/subscriptions","organizations_url":"https://api.github.com/users/matrix-israel/orgs","repos_url":"https://api.github.com/users/matrix-israel/repos","events_url":"https://api.github.com/users/matrix-israel/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-israel/received_events","type":"Organization","site_admin":false},"repo":{"id":54314139,"node_id":"MDEwOlJlcG9zaXRvcnk1NDMxNDEzOQ==","name":"openemr","full_name":"matrix-israel/openemr","private":false,"owner":{"login":"matrix-israel","id":17746552,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzQ2NTUy","avatar_url":"https://avatars2.githubusercontent.com/u/17746552?v=4","gravatar_id":"","url":"https://api.github.com/users/matrix-israel","html_url":"https://github.com/matrix-israel","followers_url":"https://api.github.com/users/matrix-israel/followers","following_url":"https://api.github.com/users/matrix-israel/following{/other_user}","gists_url":"https://api.github.com/users/matrix-israel/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-israel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-israel/subscriptions","organizations_url":"https://api.github.com/users/matrix-israel/orgs","repos_url":"https://api.github.com/users/matrix-israel/repos","events_url":"https://api.github.com/users/matrix-israel/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-israel/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/matrix-israel/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":true,"url":"https://api.github.com/repos/matrix-israel/openemr","forks_url":"https://api.github.com/repos/matrix-israel/openemr/forks","keys_url":"https://api.github.com/repos/matrix-israel/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-israel/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-israel/openemr/teams","hooks_url":"https://api.github.com/repos/matrix-israel/openemr/hooks","issue_events_url":"https://api.github.com/repos/matrix-israel/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-israel/openemr/events","assignees_url":"https://api.github.com/repos/matrix-israel/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-israel/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-israel/openemr/tags","blobs_url":"https://api.github.com/repos/matrix-israel/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-israel/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-israel/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-israel/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-israel/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-israel/openemr/languages","stargazers_url":"https://api.github.com/repos/matrix-israel/openemr/stargazers","contributors_url":"https://api.github.com/repos/matrix-israel/openemr/contributors","subscribers_url":"https://api.github.com/repos/matrix-israel/openemr/subscribers","subscription_url":"https://api.github.com/repos/matrix-israel/openemr/subscription","commits_url":"https://api.github.com/repos/matrix-israel/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-israel/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-israel/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-israel/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-israel/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-israel/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-israel/openemr/merges","archive_url":"https://api.github.com/repos/matrix-israel/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-israel/openemr/downloads","issues_url":"https://api.github.com/repos/matrix-israel/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-israel/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-israel/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-israel/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-israel/openemr/labels{/name}","releases_url":"https://api.github.com/repos/matrix-israel/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-israel/openemr/deployments","created_at":"2016-03-20T11:32:59Z","updated_at":"2019-04-02T06:53:16Z","pushed_at":"2019-04-07T10:52:10Z","git_url":"git://github.com/matrix-israel/openemr.git","ssh_url":"git@github.com:matrix-israel/openemr.git","clone_url":"https://github.com/matrix-israel/openemr.git","svn_url":"https://github.com/matrix-israel/openemr","homepage":"http://open-emr.org/","size":410506,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"348782ad72f88e87b87be5ac9b73aa283ad08225","user":{"login":"openemr","id":283089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MzA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/283089?v=4","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"repo":{"id":679584,"node_id":"MDEwOlJlcG9zaXRvcnk2Nzk1ODQ=","name":"openemr","full_name":"openemr/openemr","private":false,"owner":{"login":"openemr","id":283089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MzA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/283089?v=4","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openemr/openemr","description":"OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR's goal is a superior alternative to its proprietary counterparts.","fork":false,"url":"https://api.github.com/repos/openemr/openemr","forks_url":"https://api.github.com/repos/openemr/openemr/forks","keys_url":"https://api.github.com/repos/openemr/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openemr/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openemr/openemr/teams","hooks_url":"https://api.github.com/repos/openemr/openemr/hooks","issue_events_url":"https://api.github.com/repos/openemr/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/openemr/openemr/events","assignees_url":"https://api.github.com/repos/openemr/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/openemr/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/openemr/openemr/tags","blobs_url":"https://api.github.com/repos/openemr/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openemr/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openemr/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openemr/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/openemr/openemr/languages","stargazers_url":"https://api.github.com/repos/openemr/openemr/stargazers","contributors_url":"https://api.github.com/repos/openemr/openemr/contributors","subscribers_url":"https://api.github.com/repos/openemr/openemr/subscribers","subscription_url":"https://api.github.com/repos/openemr/openemr/subscription","commits_url":"https://api.github.com/repos/openemr/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openemr/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openemr/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openemr/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openemr/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/openemr/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openemr/openemr/merges","archive_url":"https://api.github.com/repos/openemr/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openemr/openemr/downloads","issues_url":"https://api.github.com/repos/openemr/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/openemr/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/openemr/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/openemr/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openemr/openemr/labels{/name}","releases_url":"https://api.github.com/repos/openemr/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/openemr/openemr/deployments","created_at":"2010-05-21T19:54:08Z","updated_at":"2019-04-06T23:05:16Z","pushed_at":"2019-04-07T11:25:54Z","git_url":"git://github.com/openemr/openemr.git","ssh_url":"git@github.com:openemr/openemr.git","clone_url":"https://github.com/openemr/openemr.git","svn_url":"https://github.com/openemr/openemr","homepage":"http://open-emr.org/","size":418011,"stargazers_count":945,"watchers_count":945,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":790,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":287,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":790,"open_issues":287,"watchers":945,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/2020"},"html":{"href":"https://github.com/openemr/openemr/pull/2020"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/2020"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/2020/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/2020/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/2020/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/b8f9c8b62f7ebdab8f160c796de58d03d1f7a0f2"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"yurige-matrix"}}