{"action":"created","comment":{"url":"https://api.github.com/repos/aces/Loris/pulls/comments/64647734","id":64647734,"diff_hunk":"@@ -29,41 +29,33 @@\n \n $quizCorrect = markQuiz($instrumentID);\n \n-if ($quizCorrect == false) {\n-    print \"incorrect\";\n-    exit();\n-} else {\n-    $user = User::singleton();\n-\n-    $userFullName = $user->getFullname();\n-    $userCenter   = $user->getCenterID();\n-    $examinerID   = $DB->pselectOne(\n-        \"SELECT examinerID \n-         FROM examiners\n-         WHERE full_name=:FN AND centerID=:CID\",\n-        array(\n-         'FN'  => $userFullName,\n-         'CID' => $userCenter,\n-        )\n-    );\n+$userFullName = $user->getFullname();\n+$userCenter   = $user->getCenterID();\n+$examinerID   = $DB->pselectOne(\n+    \"SELECT examinerID \n+     FROM examiners\n+     WHERE full_name=:FN AND centerID=:CID\",\n+    array(\n+     'FN'  => $userFullName,\n+     'CID' => $userCenter,\n+    )\n+);\n \n-    $dateArray = array(\n-                  'Y' => date('Y'),\n-                  'M' => date('m'),\n-                  'd' => date('d'),\n-                 );\n+$dateArray = array(\n+              'Y' => date('Y'),\n+              'M' => date('m'),\n+              'd' => date('d'),\n+             );\n \n-    $values = array(\n-               'pass'      => array($instrumentID => 'certified'),\n-               'date_cert' => array($instrumentID => $dateArray),\n-               'examiner'  => $examinerID,\n-              );\n+$values = array(\n+           'pass'      => array($instrumentID => 'certified'),\n+           'date_cert' => array($instrumentID => $dateArray),\n+           'examiner'  => $examinerID,\n+          );\n \n-    process($values);\n-\n-    print \"correct\";\n-    exit();\n-}\n+//process($values);","path":"modules/training/ajax/markQuiz.php","position":60,"original_position":60,"commit_id":"fde33e2a3d2151d7aa8b9f308476f89fad05a67d","original_commit_id":"fde33e2a3d2151d7aa8b9f308476f89fad05a67d","user":{"login":"alisterdev","id":6627543,"avatar_url":"https://avatars.githubusercontent.com/u/6627543?v=3","gravatar_id":"","url":"https://api.github.com/users/alisterdev","html_url":"https://github.com/alisterdev","followers_url":"https://api.github.com/users/alisterdev/followers","following_url":"https://api.github.com/users/alisterdev/following{/other_user}","gists_url":"https://api.github.com/users/alisterdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alisterdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisterdev/subscriptions","organizations_url":"https://api.github.com/users/alisterdev/orgs","repos_url":"https://api.github.com/users/alisterdev/repos","events_url":"https://api.github.com/users/alisterdev/events{/privacy}","received_events_url":"https://api.github.com/users/alisterdev/received_events","type":"User","site_admin":false},"body":"@taracampbell This shouldn't be commented out I believe. When process is not called the completed certifications are not moved from \"Certifications to complete\" to \"Completed Certifications\"","created_at":"2016-05-25T20:32:10Z","updated_at":"2016-05-25T20:32:10Z","html_url":"https://github.com/aces/Loris/pull/1824#discussion_r64647734","pull_request_url":"https://api.github.com/repos/aces/Loris/pulls/1824","_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments/64647734"},"html":{"href":"https://github.com/aces/Loris/pull/1824#discussion_r64647734"},"pull_request":{"href":"https://api.github.com/repos/aces/Loris/pulls/1824"}}},"pull_request":{"url":"https://api.github.com/repos/aces/Loris/pulls/1824","id":70656269,"html_url":"https://github.com/aces/Loris/pull/1824","diff_url":"https://github.com/aces/Loris/pull/1824.diff","patch_url":"https://github.com/aces/Loris/pull/1824.patch","issue_url":"https://api.github.com/repos/aces/Loris/issues/1824","number":1824,"state":"open","locked":false,"title":"Training popups: rebased for 16.0","user":{"login":"taracampbell","id":5473436,"avatar_url":"https://avatars.githubusercontent.com/u/5473436?v=3","gravatar_id":"","url":"https://api.github.com/users/taracampbell","html_url":"https://github.com/taracampbell","followers_url":"https://api.github.com/users/taracampbell/followers","following_url":"https://api.github.com/users/taracampbell/following{/other_user}","gists_url":"https://api.github.com/users/taracampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/taracampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taracampbell/subscriptions","organizations_url":"https://api.github.com/users/taracampbell/orgs","repos_url":"https://api.github.com/users/taracampbell/repos","events_url":"https://api.github.com/users/taracampbell/events{/privacy}","received_events_url":"https://api.github.com/users/taracampbell/received_events","type":"User","site_admin":false},"body":"Feature request from CCNA. The code is a mess right now - still a work in progress before it can be merged into LORIS. I just put everything up here for now for CCNA team reference.\r\n\r\nFeature: Quiz has extra information displayed after you respond. It shows you which questions you got wrong and right, highlights the correct answers, and explains why the questions you got wrong are wrong.\r\n\r\n<img width=\"1163\" alt=\"screen shot 2016-05-12 at 3 39 45 pm\" src=\"https://cloud.githubusercontent.com/assets/5473436/15216588/fb9951ee-1857-11e6-909a-99ce0ca6043c.png\">","created_at":"2016-05-19T08:47:12Z","updated_at":"2016-05-25T20:32:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c79fa36a551e47b956a916d86c0834b7f7cdaff7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aces/Loris/pulls/1824/commits","review_comments_url":"https://api.github.com/repos/aces/Loris/pulls/1824/comments","review_comment_url":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aces/Loris/issues/1824/comments","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/fde33e2a3d2151d7aa8b9f308476f89fad05a67d","head":{"label":"taracampbell:training_popups","ref":"training_popups","sha":"fde33e2a3d2151d7aa8b9f308476f89fad05a67d","user":{"login":"taracampbell","id":5473436,"avatar_url":"https://avatars.githubusercontent.com/u/5473436?v=3","gravatar_id":"","url":"https://api.github.com/users/taracampbell","html_url":"https://github.com/taracampbell","followers_url":"https://api.github.com/users/taracampbell/followers","following_url":"https://api.github.com/users/taracampbell/following{/other_user}","gists_url":"https://api.github.com/users/taracampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/taracampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taracampbell/subscriptions","organizations_url":"https://api.github.com/users/taracampbell/orgs","repos_url":"https://api.github.com/users/taracampbell/repos","events_url":"https://api.github.com/users/taracampbell/events{/privacy}","received_events_url":"https://api.github.com/users/taracampbell/received_events","type":"User","site_admin":false},"repo":{"id":25535042,"name":"Loris","full_name":"taracampbell/Loris","owner":{"login":"taracampbell","id":5473436,"avatar_url":"https://avatars.githubusercontent.com/u/5473436?v=3","gravatar_id":"","url":"https://api.github.com/users/taracampbell","html_url":"https://github.com/taracampbell","followers_url":"https://api.github.com/users/taracampbell/followers","following_url":"https://api.github.com/users/taracampbell/following{/other_user}","gists_url":"https://api.github.com/users/taracampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/taracampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taracampbell/subscriptions","organizations_url":"https://api.github.com/users/taracampbell/orgs","repos_url":"https://api.github.com/users/taracampbell/repos","events_url":"https://api.github.com/users/taracampbell/events{/privacy}","received_events_url":"https://api.github.com/users/taracampbell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taracampbell/Loris","description":"LORIS (Longitudinal Online Research and Imaging System) is a web-accessible database solution for neuroimaging.","fork":true,"url":"https://api.github.com/repos/taracampbell/Loris","forks_url":"https://api.github.com/repos/taracampbell/Loris/forks","keys_url":"https://api.github.com/repos/taracampbell/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taracampbell/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taracampbell/Loris/teams","hooks_url":"https://api.github.com/repos/taracampbell/Loris/hooks","issue_events_url":"https://api.github.com/repos/taracampbell/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/taracampbell/Loris/events","assignees_url":"https://api.github.com/repos/taracampbell/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/taracampbell/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/taracampbell/Loris/tags","blobs_url":"https://api.github.com/repos/taracampbell/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taracampbell/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taracampbell/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/taracampbell/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taracampbell/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/taracampbell/Loris/languages","stargazers_url":"https://api.github.com/repos/taracampbell/Loris/stargazers","contributors_url":"https://api.github.com/repos/taracampbell/Loris/contributors","subscribers_url":"https://api.github.com/repos/taracampbell/Loris/subscribers","subscription_url":"https://api.github.com/repos/taracampbell/Loris/subscription","commits_url":"https://api.github.com/repos/taracampbell/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/taracampbell/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/taracampbell/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/taracampbell/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/taracampbell/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/taracampbell/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taracampbell/Loris/merges","archive_url":"https://api.github.com/repos/taracampbell/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taracampbell/Loris/downloads","issues_url":"https://api.github.com/repos/taracampbell/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/taracampbell/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/taracampbell/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/taracampbell/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taracampbell/Loris/labels{/name}","releases_url":"https://api.github.com/repos/taracampbell/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/taracampbell/Loris/deployments","created_at":"2014-10-21T17:10:37Z","updated_at":"2015-04-07T13:35:06Z","pushed_at":"2016-05-24T09:54:03Z","git_url":"git://github.com/taracampbell/Loris.git","ssh_url":"git@github.com:taracampbell/Loris.git","clone_url":"https://github.com/taracampbell/Loris.git","svn_url":"https://github.com/taracampbell/Loris","homepage":"","size":64885,"stargazers_count":0,"watchers_count":0,"language":"Smarty","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aces:16.04-dev","ref":"16.04-dev","sha":"06324b96764edc2025348df85aa01cd5c5bb4891","user":{"login":"aces","id":472868,"avatar_url":"https://avatars.githubusercontent.com/u/472868?v=3","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"repo":{"id":1125630,"name":"Loris","full_name":"aces/Loris","owner":{"login":"aces","id":472868,"avatar_url":"https://avatars.githubusercontent.com/u/472868?v=3","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aces/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":false,"url":"https://api.github.com/repos/aces/Loris","forks_url":"https://api.github.com/repos/aces/Loris/forks","keys_url":"https://api.github.com/repos/aces/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aces/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aces/Loris/teams","hooks_url":"https://api.github.com/repos/aces/Loris/hooks","issue_events_url":"https://api.github.com/repos/aces/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/aces/Loris/events","assignees_url":"https://api.github.com/repos/aces/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/aces/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/aces/Loris/tags","blobs_url":"https://api.github.com/repos/aces/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aces/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aces/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/aces/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/aces/Loris/languages","stargazers_url":"https://api.github.com/repos/aces/Loris/stargazers","contributors_url":"https://api.github.com/repos/aces/Loris/contributors","subscribers_url":"https://api.github.com/repos/aces/Loris/subscribers","subscription_url":"https://api.github.com/repos/aces/Loris/subscription","commits_url":"https://api.github.com/repos/aces/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/aces/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/aces/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/aces/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/aces/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/aces/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aces/Loris/merges","archive_url":"https://api.github.com/repos/aces/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aces/Loris/downloads","issues_url":"https://api.github.com/repos/aces/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/aces/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/aces/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/aces/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aces/Loris/labels{/name}","releases_url":"https://api.github.com/repos/aces/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/aces/Loris/deployments","created_at":"2010-11-30T14:57:57Z","updated_at":"2016-05-20T14:23:15Z","pushed_at":"2016-05-25T20:23:58Z","git_url":"git://github.com/aces/Loris.git","ssh_url":"git@github.com:aces/Loris.git","clone_url":"https://github.com/aces/Loris.git","svn_url":"https://github.com/aces/Loris","homepage":"","size":67945,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":44,"forks":54,"open_issues":44,"watchers":33,"default_branch":"16.1-dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/1824"},"html":{"href":"https://github.com/aces/Loris/pull/1824"},"issue":{"href":"https://api.github.com/repos/aces/Loris/issues/1824"},"comments":{"href":"https://api.github.com/repos/aces/Loris/issues/1824/comments"},"review_comments":{"href":"https://api.github.com/repos/aces/Loris/pulls/1824/comments"},"review_comment":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aces/Loris/pulls/1824/commits"},"statuses":{"href":"https://api.github.com/repos/aces/Loris/statuses/fde33e2a3d2151d7aa8b9f308476f89fad05a67d"}}}}
{"actor":{"display_login":"alisterdev"}}