{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments/53512977","id":53512977,"diff_hunk":"@@ -492,6 +492,17 @@ function _dosomething_reportback_get_permalink_copy_vars($user) {\n  * Alters the signup form that is attached to permalink pages.\n  */\n function dosomething_reportback_form_alter(&$form, &$form_state, $form_id) {\n+\n+  // Make sure a default run is added to the filter\n+  if ($form['#id'] == 'views-exposed-form-reportback-files-page-1') {\n+    if (empty($_GET['run_nid'])) {\n+      $run = dosomething_helpers_get_current_campaign_run_for_user(arg(1));\n+      if (isset($run)) {","path":"lib/modules/dosomething/dosomething_reportback/dosomething_reportback.module","position":9,"original_position":9,"commit_id":"e7673fd45a206fec483f26e7c1038e521db4c7ec","original_commit_id":"e7673fd45a206fec483f26e7c1038e521db4c7ec","user":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"body":"Maybe `!empty()` will be better?","created_at":"2016-02-19T20:18:51Z","updated_at":"2016-02-19T20:18:51Z","html_url":"https://github.com/DoSomething/phoenix/pull/6194#discussion_r53512977","pull_request_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments/53512977"},"html":{"href":"https://github.com/DoSomething/phoenix/pull/6194#discussion_r53512977"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194","id":60001246,"html_url":"https://github.com/DoSomething/phoenix/pull/6194","diff_url":"https://github.com/DoSomething/phoenix/pull/6194.diff","patch_url":"https://github.com/DoSomething/phoenix/pull/6194.patch","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6194","number":6194,"state":"open","locked":false,"title":"Forces a default run nid to be inserted into the filter","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\nMakes sure that the run nid on reportback view tab has a default value corresponding to the campaigns current default.\r\n\r\n#### How should this be manually tested?\r\nGo to a reportback review tab, is the correct thing filled out and does it show the correct reportbacks?\r\n\r\n#### Any background context you want to provide?\r\nI realized i didn't notice this the first time because on my machine the first ~10 reportbacks we're correct, but after that they were not. Whereas on Thor/Prod shit is just completely wrong and out of order.\r\n\r\n#### What are the relevant tickets?\r\nFixes #6192 \r\n\r\n","created_at":"2016-02-19T20:14:45Z","updated_at":"2016-02-19T20:18:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dd3f70323afff1ef6db5d4f3d5e42d15bfa0db1","assignee":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194/commits","review_comments_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194/comments","review_comment_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6194/comments","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/e7673fd45a206fec483f26e7c1038e521db4c7ec","head":{"label":"deadlybutter:6192","ref":"6192","sha":"e7673fd45a206fec483f26e7c1038e521db4c7ec","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"repo":{"id":43687372,"name":"phoenix","full_name":"deadlybutter/phoenix","owner":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deadlybutter/phoenix","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":true,"url":"https://api.github.com/repos/deadlybutter/phoenix","forks_url":"https://api.github.com/repos/deadlybutter/phoenix/forks","keys_url":"https://api.github.com/repos/deadlybutter/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deadlybutter/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deadlybutter/phoenix/teams","hooks_url":"https://api.github.com/repos/deadlybutter/phoenix/hooks","issue_events_url":"https://api.github.com/repos/deadlybutter/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/deadlybutter/phoenix/events","assignees_url":"https://api.github.com/repos/deadlybutter/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/deadlybutter/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/deadlybutter/phoenix/tags","blobs_url":"https://api.github.com/repos/deadlybutter/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deadlybutter/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deadlybutter/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/deadlybutter/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deadlybutter/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/deadlybutter/phoenix/languages","stargazers_url":"https://api.github.com/repos/deadlybutter/phoenix/stargazers","contributors_url":"https://api.github.com/repos/deadlybutter/phoenix/contributors","subscribers_url":"https://api.github.com/repos/deadlybutter/phoenix/subscribers","subscription_url":"https://api.github.com/repos/deadlybutter/phoenix/subscription","commits_url":"https://api.github.com/repos/deadlybutter/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/deadlybutter/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/deadlybutter/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/deadlybutter/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/deadlybutter/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/deadlybutter/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deadlybutter/phoenix/merges","archive_url":"https://api.github.com/repos/deadlybutter/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deadlybutter/phoenix/downloads","issues_url":"https://api.github.com/repos/deadlybutter/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/deadlybutter/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/deadlybutter/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/deadlybutter/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deadlybutter/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/deadlybutter/phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/deadlybutter/phoenix/deployments","created_at":"2015-10-05T13:56:21Z","updated_at":"2016-01-12T16:09:45Z","pushed_at":"2016-02-19T20:08:23Z","git_url":"git://github.com/deadlybutter/phoenix.git","ssh_url":"git@github.com:deadlybutter/phoenix.git","clone_url":"https://github.com/deadlybutter/phoenix.git","svn_url":"https://github.com/deadlybutter/phoenix","homepage":"http://www.dosomething.org/","size":16290,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"dev"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"c350d4a452194067aae0124d831c2a73fca3ec89","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":13592927,"name":"phoenix","full_name":"DoSomething/phoenix","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/phoenix","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":false,"url":"https://api.github.com/repos/DoSomething/phoenix","forks_url":"https://api.github.com/repos/DoSomething/phoenix/forks","keys_url":"https://api.github.com/repos/DoSomething/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/phoenix/teams","hooks_url":"https://api.github.com/repos/DoSomething/phoenix/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/phoenix/events","assignees_url":"https://api.github.com/repos/DoSomething/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/phoenix/tags","blobs_url":"https://api.github.com/repos/DoSomething/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/phoenix/languages","stargazers_url":"https://api.github.com/repos/DoSomething/phoenix/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/phoenix/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/phoenix/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/phoenix/subscription","commits_url":"https://api.github.com/repos/DoSomething/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/phoenix/merges","archive_url":"https://api.github.com/repos/DoSomething/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/phoenix/downloads","issues_url":"https://api.github.com/repos/DoSomething/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/phoenix/deployments","created_at":"2013-10-15T14:50:48Z","updated_at":"2016-01-11T18:53:47Z","pushed_at":"2016-02-19T20:14:45Z","git_url":"git://github.com/DoSomething/phoenix.git","ssh_url":"git@github.com:DoSomething/phoenix.git","clone_url":"https://github.com/DoSomething/phoenix.git","svn_url":"https://github.com/DoSomething/phoenix","homepage":"http://www.dosomething.org/","size":17004,"stargazers_count":28,"watchers_count":28,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":189,"forks":18,"open_issues":189,"watchers":28,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194"},"html":{"href":"https://github.com/DoSomething/phoenix/pull/6194"},"issue":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/6194"},"comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/6194/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/6194/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/phoenix/statuses/e7673fd45a206fec483f26e7c1038e521db4c7ec"}}}}