{"action":"created","comment":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/147571021","pull_request_review_id":72687761,"id":147571021,"diff_hunk":"@@ -169,9 +170,22 @@ public static function getNominations(\n             nominator.user_id = qn.user_id';\n         $params = [];\n \n-        if (!is_null($nominator)) {\n-            $sql .= ' WHERE qn.user_id = ?';\n-            $params[] = $nominator;\n+        if ((!is_null($types) && !empty($types)) || !is_null($nominator)) {\n+            $conditions = [];\n+            if (!is_null($types) && !empty($types)) {\n+                global $conn;\n+                foreach ($types as &$type) {\n+                        $type = mysqli_real_escape_string($conn->_connectionID, $type);","path":"frontend/server/libs/dao/QualityNominations.dao.php","position":null,"original_position":22,"commit_id":"b85c2bd510a3291cbbe61475f6c563dff881fb1b","original_commit_id":"069a9ab7e2d5a63b8938b4426133006e27e99320","user":{"login":"heduenas","id":597815,"avatar_url":"https://avatars3.githubusercontent.com/u/597815?v=4","gravatar_id":"","url":"https://api.github.com/users/heduenas","html_url":"https://github.com/heduenas","followers_url":"https://api.github.com/users/heduenas/followers","following_url":"https://api.github.com/users/heduenas/following{/other_user}","gists_url":"https://api.github.com/users/heduenas/gists{/gist_id}","starred_url":"https://api.github.com/users/heduenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heduenas/subscriptions","organizations_url":"https://api.github.com/users/heduenas/orgs","repos_url":"https://api.github.com/users/heduenas/repos","events_url":"https://api.github.com/users/heduenas/events{/privacy}","received_events_url":"https://api.github.com/users/heduenas/received_events","type":"User","site_admin":false},"body":"listo","created_at":"2017-10-29T05:32:23Z","updated_at":"2017-10-29T05:32:23Z","html_url":"https://github.com/omegaup/omegaup/pull/1502#discussion_r147571021","pull_request_url":"https://api.github.com/repos/omegaup/omegaup/pulls/1502","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/147571021"},"html":{"href":"https://github.com/omegaup/omegaup/pull/1502#discussion_r147571021"},"pull_request":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/1502"}},"in_reply_to_id":147570721},"pull_request":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/1502","id":149365965,"html_url":"https://github.com/omegaup/omegaup/pull/1502","diff_url":"https://github.com/omegaup/omegaup/pull/1502.diff","patch_url":"https://github.com/omegaup/omegaup/pull/1502.patch","issue_url":"https://api.github.com/repos/omegaup/omegaup/issues/1502","number":1502,"state":"open","locked":false,"title":"Bugfixes para Clasificación Problemas","user":{"login":"heduenas","id":597815,"avatar_url":"https://avatars3.githubusercontent.com/u/597815?v=4","gravatar_id":"","url":"https://api.github.com/users/heduenas","html_url":"https://github.com/heduenas","followers_url":"https://api.github.com/users/heduenas/followers","following_url":"https://api.github.com/users/heduenas/following{/other_user}","gists_url":"https://api.github.com/users/heduenas/gists{/gist_id}","starred_url":"https://api.github.com/users/heduenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heduenas/subscriptions","organizations_url":"https://api.github.com/users/heduenas/orgs","repos_url":"https://api.github.com/users/heduenas/repos","events_url":"https://api.github.com/users/heduenas/events{/privacy}","received_events_url":"https://api.github.com/users/heduenas/received_events","type":"User","site_admin":false},"body":"Estoy haciendo 3 cambios:\r\n* (#1447) Filtrando \"suggestions\" y \"dismissals\" de la lista de nominaciones.\r\n* (#1448) Cambiando el botón \"Show all nominations\" a \"Mostrar también nominaciones resueltas\".\r\n* (#1450) Mostrando campo \"contents\" en los detalles de la nominación. (Antes se estaba mostrando \"original_contents\" que sólo tiene sentido para promotions. De pasada los imprimo con pretty print. Ver imagen.\r\n![screenshot from 2017-10-28 20-10-47](https://user-images.githubusercontent.com/597815/32140449-e073cc80-bc1d-11e7-97e5-fed95cccdcb1.png)\r\n\r\n","created_at":"2017-10-29T03:23:57Z","updated_at":"2017-10-29T05:32:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6917f18efe983bfd39c314f06170ae00e5f1a2cf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/omegaup/omegaup/pulls/1502/commits","review_comments_url":"https://api.github.com/repos/omegaup/omegaup/pulls/1502/comments","review_comment_url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omegaup/omegaup/issues/1502/comments","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/b85c2bd510a3291cbbe61475f6c563dff881fb1b","head":{"label":"heduenas:master","ref":"master","sha":"b85c2bd510a3291cbbe61475f6c563dff881fb1b","user":{"login":"heduenas","id":597815,"avatar_url":"https://avatars3.githubusercontent.com/u/597815?v=4","gravatar_id":"","url":"https://api.github.com/users/heduenas","html_url":"https://github.com/heduenas","followers_url":"https://api.github.com/users/heduenas/followers","following_url":"https://api.github.com/users/heduenas/following{/other_user}","gists_url":"https://api.github.com/users/heduenas/gists{/gist_id}","starred_url":"https://api.github.com/users/heduenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heduenas/subscriptions","organizations_url":"https://api.github.com/users/heduenas/orgs","repos_url":"https://api.github.com/users/heduenas/repos","events_url":"https://api.github.com/users/heduenas/events{/privacy}","received_events_url":"https://api.github.com/users/heduenas/received_events","type":"User","site_admin":false},"repo":{"id":100146266,"name":"omegaup","full_name":"heduenas/omegaup","owner":{"login":"heduenas","id":597815,"avatar_url":"https://avatars3.githubusercontent.com/u/597815?v=4","gravatar_id":"","url":"https://api.github.com/users/heduenas","html_url":"https://github.com/heduenas","followers_url":"https://api.github.com/users/heduenas/followers","following_url":"https://api.github.com/users/heduenas/following{/other_user}","gists_url":"https://api.github.com/users/heduenas/gists{/gist_id}","starred_url":"https://api.github.com/users/heduenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heduenas/subscriptions","organizations_url":"https://api.github.com/users/heduenas/orgs","repos_url":"https://api.github.com/users/heduenas/repos","events_url":"https://api.github.com/users/heduenas/events{/privacy}","received_events_url":"https://api.github.com/users/heduenas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heduenas/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":true,"url":"https://api.github.com/repos/heduenas/omegaup","forks_url":"https://api.github.com/repos/heduenas/omegaup/forks","keys_url":"https://api.github.com/repos/heduenas/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heduenas/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heduenas/omegaup/teams","hooks_url":"https://api.github.com/repos/heduenas/omegaup/hooks","issue_events_url":"https://api.github.com/repos/heduenas/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/heduenas/omegaup/events","assignees_url":"https://api.github.com/repos/heduenas/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/heduenas/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/heduenas/omegaup/tags","blobs_url":"https://api.github.com/repos/heduenas/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heduenas/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heduenas/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/heduenas/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heduenas/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/heduenas/omegaup/languages","stargazers_url":"https://api.github.com/repos/heduenas/omegaup/stargazers","contributors_url":"https://api.github.com/repos/heduenas/omegaup/contributors","subscribers_url":"https://api.github.com/repos/heduenas/omegaup/subscribers","subscription_url":"https://api.github.com/repos/heduenas/omegaup/subscription","commits_url":"https://api.github.com/repos/heduenas/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/heduenas/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/heduenas/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/heduenas/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/heduenas/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/heduenas/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heduenas/omegaup/merges","archive_url":"https://api.github.com/repos/heduenas/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heduenas/omegaup/downloads","issues_url":"https://api.github.com/repos/heduenas/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/heduenas/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/heduenas/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/heduenas/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heduenas/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/heduenas/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/heduenas/omegaup/deployments","created_at":"2017-08-13T01:18:59Z","updated_at":"2017-08-13T01:19:02Z","pushed_at":"2017-10-29T05:31:53Z","git_url":"git://github.com/heduenas/omegaup.git","ssh_url":"git@github.com:heduenas/omegaup.git","clone_url":"https://github.com/heduenas/omegaup.git","svn_url":"https://github.com/heduenas/omegaup","homepage":"https://omegaup.com","size":223169,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"omegaup:master","ref":"master","sha":"f9fa42f8969dbbb57cdc915a66ac7528d5eb0184","user":{"login":"omegaup","id":558429,"avatar_url":"https://avatars0.githubusercontent.com/u/558429?v=4","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"repo":{"id":1243685,"name":"omegaup","full_name":"omegaup/omegaup","owner":{"login":"omegaup","id":558429,"avatar_url":"https://avatars0.githubusercontent.com/u/558429?v=4","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omegaup/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":false,"url":"https://api.github.com/repos/omegaup/omegaup","forks_url":"https://api.github.com/repos/omegaup/omegaup/forks","keys_url":"https://api.github.com/repos/omegaup/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omegaup/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omegaup/omegaup/teams","hooks_url":"https://api.github.com/repos/omegaup/omegaup/hooks","issue_events_url":"https://api.github.com/repos/omegaup/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/omegaup/omegaup/events","assignees_url":"https://api.github.com/repos/omegaup/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/omegaup/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/omegaup/omegaup/tags","blobs_url":"https://api.github.com/repos/omegaup/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omegaup/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omegaup/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/omegaup/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/omegaup/omegaup/languages","stargazers_url":"https://api.github.com/repos/omegaup/omegaup/stargazers","contributors_url":"https://api.github.com/repos/omegaup/omegaup/contributors","subscribers_url":"https://api.github.com/repos/omegaup/omegaup/subscribers","subscription_url":"https://api.github.com/repos/omegaup/omegaup/subscription","commits_url":"https://api.github.com/repos/omegaup/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/omegaup/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/omegaup/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/omegaup/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/omegaup/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/omegaup/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omegaup/omegaup/merges","archive_url":"https://api.github.com/repos/omegaup/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omegaup/omegaup/downloads","issues_url":"https://api.github.com/repos/omegaup/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/omegaup/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/omegaup/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/omegaup/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omegaup/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/omegaup/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/omegaup/omegaup/deployments","created_at":"2011-01-12T00:11:21Z","updated_at":"2017-08-28T06:11:56Z","pushed_at":"2017-10-29T05:31:55Z","git_url":"git://github.com/omegaup/omegaup.git","ssh_url":"git@github.com:omegaup/omegaup.git","clone_url":"https://github.com/omegaup/omegaup.git","svn_url":"https://github.com/omegaup/omegaup","homepage":"https://omegaup.com","size":222998,"stargazers_count":39,"watchers_count":39,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":211,"forks":55,"open_issues":211,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/1502"},"html":{"href":"https://github.com/omegaup/omegaup/pull/1502"},"issue":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/1502"},"comments":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/1502/comments"},"review_comments":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/1502/comments"},"review_comment":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/1502/commits"},"statuses":{"href":"https://api.github.com/repos/omegaup/omegaup/statuses/b85c2bd510a3291cbbe61475f6c563dff881fb1b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"heduenas"}}