{"action":"created","comment":{"url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/comments/54922476","id":54922476,"diff_hunk":"@@ -633,3 +640,52 @@ function springboard_p2p_update_7008() {\n \n   db_add_field('springboard_p2p_personal_campaign_action', 'status', $status);\n }\n+\n+/**\n+ * Adds donor_name field to personal campaign actions.\n+ */\n+function springboard_p2p_update_7009(&$sandox) {\n+  $donor_name = array(\n+    'description' => 'The name to show for the submission.',\n+    'type' => 'varchar',\n+    'length' => 255,\n+    'not null' => FALSE,\n+    'default' => NULL,   \n+  );\n+  \n+  db_add_field('springboard_p2p_personal_campaign_action', 'donor_name', $donor_name);\n+  \n+  if (!isset($sandbox['progress'])) {\n+    $sandbox['progress'] = 0;\n+    $sandbox['current_sid'] = 0;\n+    $query = \"SELECT COUNT(sid) FROM {springboard_p2p_personal_campaign_action} WHERE show_name = 1 AND status = 1 AND action_type = 'fundraiser'\";","path":"springboard_p2p/springboard_p2p.install","position":36,"original_position":36,"commit_id":"0a0eeb32bc935bd908f0f50f1dda49dbaf3be8ae","original_commit_id":"0a0eeb32bc935bd908f0f50f1dda49dbaf3be8ae","user":{"login":"jesswalls","id":901002,"avatar_url":"https://avatars.githubusercontent.com/u/901002?v=3","gravatar_id":"","url":"https://api.github.com/users/jesswalls","html_url":"https://github.com/jesswalls","followers_url":"https://api.github.com/users/jesswalls/followers","following_url":"https://api.github.com/users/jesswalls/following{/other_user}","gists_url":"https://api.github.com/users/jesswalls/gists{/gist_id}","starred_url":"https://api.github.com/users/jesswalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesswalls/subscriptions","organizations_url":"https://api.github.com/users/jesswalls/orgs","repos_url":"https://api.github.com/users/jesswalls/repos","events_url":"https://api.github.com/users/jesswalls/events{/privacy}","received_events_url":"https://api.github.com/users/jesswalls/received_events","type":"User","site_admin":false},"body":"@pcave Is this query to restrictive for updating the donor_name field?","created_at":"2016-03-03T18:19:54Z","updated_at":"2016-03-03T18:19:54Z","html_url":"https://github.com/JacksonRiver/springboard_modules/pull/986#discussion_r54922476","pull_request_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986","_links":{"self":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/comments/54922476"},"html":{"href":"https://github.com/JacksonRiver/springboard_modules/pull/986#discussion_r54922476"},"pull_request":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986"}}},"pull_request":{"url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986","id":61567191,"html_url":"https://github.com/JacksonRiver/springboard_modules/pull/986","diff_url":"https://github.com/JacksonRiver/springboard_modules/pull/986.diff","patch_url":"https://github.com/JacksonRiver/springboard_modules/pull/986.patch","issue_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/986","number":986,"state":"open","locked":false,"title":"7.x 4.x p2p save donor name","user":{"login":"jesswalls","id":901002,"avatar_url":"https://avatars.githubusercontent.com/u/901002?v=3","gravatar_id":"","url":"https://api.github.com/users/jesswalls","html_url":"https://github.com/jesswalls","followers_url":"https://api.github.com/users/jesswalls/followers","following_url":"https://api.github.com/users/jesswalls/following{/other_user}","gists_url":"https://api.github.com/users/jesswalls/gists{/gist_id}","starred_url":"https://api.github.com/users/jesswalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesswalls/subscriptions","organizations_url":"https://api.github.com/users/jesswalls/orgs","repos_url":"https://api.github.com/users/jesswalls/repos","events_url":"https://api.github.com/users/jesswalls/events{/privacy}","received_events_url":"https://api.github.com/users/jesswalls/received_events","type":"User","site_admin":false},"body":"- Adds donor_name field to springboard_p2p_personal_campaign_action table.\r\n- Allow other modules to implement hook_springboard_p2p_save_personal_campaign_action_alter().\r\n- In springboard_p2p_fundraiser_donation_success() save p2p donor name (from profile fields) to  springboard_p2p_personal_campaign_action table.","created_at":"2016-03-03T14:34:28Z","updated_at":"2016-03-03T18:19:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6237cc4034d8e5fc011b98411929dcc8a39c1f98","assignee":null,"milestone":{"url":"https://api.github.com/repos/JacksonRiver/springboard_modules/milestones/26","html_url":"https://github.com/JacksonRiver/springboard_modules/milestones/Winter%2016","labels_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/milestones/26/labels","id":1489477,"number":26,"title":"Winter 16","description":"Mid-term release","creator":{"login":"pcave","id":176454,"avatar_url":"https://avatars.githubusercontent.com/u/176454?v=3","gravatar_id":"","url":"https://api.github.com/users/pcave","html_url":"https://github.com/pcave","followers_url":"https://api.github.com/users/pcave/followers","following_url":"https://api.github.com/users/pcave/following{/other_user}","gists_url":"https://api.github.com/users/pcave/gists{/gist_id}","starred_url":"https://api.github.com/users/pcave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcave/subscriptions","organizations_url":"https://api.github.com/users/pcave/orgs","repos_url":"https://api.github.com/users/pcave/repos","events_url":"https://api.github.com/users/pcave/events{/privacy}","received_events_url":"https://api.github.com/users/pcave/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":21,"state":"open","created_at":"2016-01-07T13:09:32Z","updated_at":"2016-03-03T14:35:30Z","due_on":"2016-02-26T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986/commits","review_comments_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986/comments","review_comment_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/986/comments","statuses_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/statuses/0a0eeb32bc935bd908f0f50f1dda49dbaf3be8ae","head":{"label":"jesswalls:7.x-4.x-p2p_save_donor_name","ref":"7.x-4.x-p2p_save_donor_name","sha":"0a0eeb32bc935bd908f0f50f1dda49dbaf3be8ae","user":{"login":"jesswalls","id":901002,"avatar_url":"https://avatars.githubusercontent.com/u/901002?v=3","gravatar_id":"","url":"https://api.github.com/users/jesswalls","html_url":"https://github.com/jesswalls","followers_url":"https://api.github.com/users/jesswalls/followers","following_url":"https://api.github.com/users/jesswalls/following{/other_user}","gists_url":"https://api.github.com/users/jesswalls/gists{/gist_id}","starred_url":"https://api.github.com/users/jesswalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesswalls/subscriptions","organizations_url":"https://api.github.com/users/jesswalls/orgs","repos_url":"https://api.github.com/users/jesswalls/repos","events_url":"https://api.github.com/users/jesswalls/events{/privacy}","received_events_url":"https://api.github.com/users/jesswalls/received_events","type":"User","site_admin":false},"repo":{"id":33268023,"name":"springboard_modules","full_name":"jesswalls/springboard_modules","owner":{"login":"jesswalls","id":901002,"avatar_url":"https://avatars.githubusercontent.com/u/901002?v=3","gravatar_id":"","url":"https://api.github.com/users/jesswalls","html_url":"https://github.com/jesswalls","followers_url":"https://api.github.com/users/jesswalls/followers","following_url":"https://api.github.com/users/jesswalls/following{/other_user}","gists_url":"https://api.github.com/users/jesswalls/gists{/gist_id}","starred_url":"https://api.github.com/users/jesswalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesswalls/subscriptions","organizations_url":"https://api.github.com/users/jesswalls/orgs","repos_url":"https://api.github.com/users/jesswalls/repos","events_url":"https://api.github.com/users/jesswalls/events{/privacy}","received_events_url":"https://api.github.com/users/jesswalls/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jesswalls/springboard_modules","description":"Springboard is an enterprise Drupal fundraising platform fully integrated with Salesforce.","fork":true,"url":"https://api.github.com/repos/jesswalls/springboard_modules","forks_url":"https://api.github.com/repos/jesswalls/springboard_modules/forks","keys_url":"https://api.github.com/repos/jesswalls/springboard_modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jesswalls/springboard_modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jesswalls/springboard_modules/teams","hooks_url":"https://api.github.com/repos/jesswalls/springboard_modules/hooks","issue_events_url":"https://api.github.com/repos/jesswalls/springboard_modules/issues/events{/number}","events_url":"https://api.github.com/repos/jesswalls/springboard_modules/events","assignees_url":"https://api.github.com/repos/jesswalls/springboard_modules/assignees{/user}","branches_url":"https://api.github.com/repos/jesswalls/springboard_modules/branches{/branch}","tags_url":"https://api.github.com/repos/jesswalls/springboard_modules/tags","blobs_url":"https://api.github.com/repos/jesswalls/springboard_modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jesswalls/springboard_modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jesswalls/springboard_modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/jesswalls/springboard_modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jesswalls/springboard_modules/statuses/{sha}","languages_url":"https://api.github.com/repos/jesswalls/springboard_modules/languages","stargazers_url":"https://api.github.com/repos/jesswalls/springboard_modules/stargazers","contributors_url":"https://api.github.com/repos/jesswalls/springboard_modules/contributors","subscribers_url":"https://api.github.com/repos/jesswalls/springboard_modules/subscribers","subscription_url":"https://api.github.com/repos/jesswalls/springboard_modules/subscription","commits_url":"https://api.github.com/repos/jesswalls/springboard_modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/jesswalls/springboard_modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/jesswalls/springboard_modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/jesswalls/springboard_modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/jesswalls/springboard_modules/contents/{+path}","compare_url":"https://api.github.com/repos/jesswalls/springboard_modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jesswalls/springboard_modules/merges","archive_url":"https://api.github.com/repos/jesswalls/springboard_modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jesswalls/springboard_modules/downloads","issues_url":"https://api.github.com/repos/jesswalls/springboard_modules/issues{/number}","pulls_url":"https://api.github.com/repos/jesswalls/springboard_modules/pulls{/number}","milestones_url":"https://api.github.com/repos/jesswalls/springboard_modules/milestones{/number}","notifications_url":"https://api.github.com/repos/jesswalls/springboard_modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jesswalls/springboard_modules/labels{/name}","releases_url":"https://api.github.com/repos/jesswalls/springboard_modules/releases{/id}","deployments_url":"https://api.github.com/repos/jesswalls/springboard_modules/deployments","created_at":"2015-04-01T19:29:21Z","updated_at":"2015-09-21T15:55:22Z","pushed_at":"2016-03-03T17:56:57Z","git_url":"git://github.com/jesswalls/springboard_modules.git","ssh_url":"git@github.com:jesswalls/springboard_modules.git","clone_url":"https://github.com/jesswalls/springboard_modules.git","svn_url":"https://github.com/jesswalls/springboard_modules","homepage":"http://www.jacksonriver.com/springboard","size":31223,"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":"7.x-4.x"}},"base":{"label":"JacksonRiver:7.x-4.x","ref":"7.x-4.x","sha":"766019d4dfadcd64c9c6eff4be2075b867e0737a","user":{"login":"JacksonRiver","id":1050207,"avatar_url":"https://avatars.githubusercontent.com/u/1050207?v=3","gravatar_id":"","url":"https://api.github.com/users/JacksonRiver","html_url":"https://github.com/JacksonRiver","followers_url":"https://api.github.com/users/JacksonRiver/followers","following_url":"https://api.github.com/users/JacksonRiver/following{/other_user}","gists_url":"https://api.github.com/users/JacksonRiver/gists{/gist_id}","starred_url":"https://api.github.com/users/JacksonRiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacksonRiver/subscriptions","organizations_url":"https://api.github.com/users/JacksonRiver/orgs","repos_url":"https://api.github.com/users/JacksonRiver/repos","events_url":"https://api.github.com/users/JacksonRiver/events{/privacy}","received_events_url":"https://api.github.com/users/JacksonRiver/received_events","type":"Organization","site_admin":false},"repo":{"id":2387090,"name":"springboard_modules","full_name":"JacksonRiver/springboard_modules","owner":{"login":"JacksonRiver","id":1050207,"avatar_url":"https://avatars.githubusercontent.com/u/1050207?v=3","gravatar_id":"","url":"https://api.github.com/users/JacksonRiver","html_url":"https://github.com/JacksonRiver","followers_url":"https://api.github.com/users/JacksonRiver/followers","following_url":"https://api.github.com/users/JacksonRiver/following{/other_user}","gists_url":"https://api.github.com/users/JacksonRiver/gists{/gist_id}","starred_url":"https://api.github.com/users/JacksonRiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacksonRiver/subscriptions","organizations_url":"https://api.github.com/users/JacksonRiver/orgs","repos_url":"https://api.github.com/users/JacksonRiver/repos","events_url":"https://api.github.com/users/JacksonRiver/events{/privacy}","received_events_url":"https://api.github.com/users/JacksonRiver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JacksonRiver/springboard_modules","description":"Springboard is an enterprise Drupal fundraising platform fully integrated with Salesforce.","fork":false,"url":"https://api.github.com/repos/JacksonRiver/springboard_modules","forks_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/forks","keys_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/teams","hooks_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/hooks","issue_events_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/events{/number}","events_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/events","assignees_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/assignees{/user}","branches_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/branches{/branch}","tags_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/tags","blobs_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/statuses/{sha}","languages_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/languages","stargazers_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/stargazers","contributors_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/contributors","subscribers_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/subscribers","subscription_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/subscription","commits_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/contents/{+path}","compare_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/merges","archive_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/downloads","issues_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues{/number}","pulls_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls{/number}","milestones_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/milestones{/number}","notifications_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/labels{/name}","releases_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/releases{/id}","deployments_url":"https://api.github.com/repos/JacksonRiver/springboard_modules/deployments","created_at":"2011-09-14T17:45:52Z","updated_at":"2015-08-25T12:11:01Z","pushed_at":"2016-03-03T17:56:57Z","git_url":"git://github.com/JacksonRiver/springboard_modules.git","ssh_url":"git@github.com:JacksonRiver/springboard_modules.git","clone_url":"https://github.com/JacksonRiver/springboard_modules.git","svn_url":"https://github.com/JacksonRiver/springboard_modules","homepage":"http://www.jacksonriver.com/springboard","size":32863,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":95,"forks":19,"open_issues":95,"watchers":26,"default_branch":"7.x-4.x"}},"_links":{"self":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986"},"html":{"href":"https://github.com/JacksonRiver/springboard_modules/pull/986"},"issue":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/986"},"comments":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/issues/986/comments"},"review_comments":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986/comments"},"review_comment":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/pulls/986/commits"},"statuses":{"href":"https://api.github.com/repos/JacksonRiver/springboard_modules/statuses/0a0eeb32bc935bd908f0f50f1dda49dbaf3be8ae"}}}}