{"action":"created","comment":{"url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/comments/233482304","pull_request_review_id":174904854,"id":233482304,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzQ4MjMwNA==","diff_hunk":"@@ -24,6 +25,24 @@ AdminOrder.prototype.prepareParams =\n             params.form_key = FORM_KEY;\n         }\n \n+        ////////////////////////////////////////////////////////////////////\n+        // Force billing to populate shipping when 'billing as shipping' is set\n+        ////////////////////////////////////////////////////////////////////\n+        var billingAddressContainer = $('order-billing_address');\n+        if (billingAddressContainer) {\n+\n+            var isBillingAddressShipping = document.getElementById('order-shipping_as_billing');\n+            if (isBillingAddressShipping && isBillingAddressShipping.checked) {\n+                var billingAddressData = this.serializeData('order-billing_address');\n+                if (billingAddressData) {\n+                    billingAddressData.each(function(value) {\n+                        document.querySelector(\"[name='\"+value[0].replace('billing_', 'shipping_')+\"']\").value = value[1];","path":"js/boltpay/admin_order.js","position":23,"original_position":23,"commit_id":"6357563a86aa77bd718ea505f9459833c59332e5","original_commit_id":"6357563a86aa77bd718ea505f9459833c59332e5","user":{"login":"daisy1754","id":980077,"node_id":"MDQ6VXNlcjk4MDA3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/980077?v=4","gravatar_id":"","url":"https://api.github.com/users/daisy1754","html_url":"https://github.com/daisy1754","followers_url":"https://api.github.com/users/daisy1754/followers","following_url":"https://api.github.com/users/daisy1754/following{/other_user}","gists_url":"https://api.github.com/users/daisy1754/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy1754/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy1754/subscriptions","organizations_url":"https://api.github.com/users/daisy1754/orgs","repos_url":"https://api.github.com/users/daisy1754/repos","events_url":"https://api.github.com/users/daisy1754/events{/privacy}","received_events_url":"https://api.github.com/users/daisy1754/received_events","type":"User","site_admin":false},"body":"suggest checking `document.querySelector(\"[name='\"+value[0].replace('billing_', 'shipping_')+\"']\")` is non-null before setting value","created_at":"2018-11-14T15:02:02Z","updated_at":"2018-11-14T15:02:08Z","html_url":"https://github.com/BoltApp/bolt-magento1/pull/251#discussion_r233482304","pull_request_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/comments/233482304"},"html":{"href":"https://github.com/BoltApp/bolt-magento1/pull/251#discussion_r233482304"},"pull_request":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251"}}},"pull_request":{"url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251","id":230763205,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNzYzMjA1","html_url":"https://github.com/BoltApp/bolt-magento1/pull/251","diff_url":"https://github.com/BoltApp/bolt-magento1/pull/251.diff","patch_url":"https://github.com/BoltApp/bolt-magento1/pull/251.patch","issue_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/251","number":251,"state":"open","locked":false,"title":"Automatically copies billing address to shipping address when billing…","user":{"login":"mccottry","id":973856,"node_id":"MDQ6VXNlcjk3Mzg1Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/973856?v=4","gravatar_id":"","url":"https://api.github.com/users/mccottry","html_url":"https://github.com/mccottry","followers_url":"https://api.github.com/users/mccottry/followers","following_url":"https://api.github.com/users/mccottry/following{/other_user}","gists_url":"https://api.github.com/users/mccottry/gists{/gist_id}","starred_url":"https://api.github.com/users/mccottry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccottry/subscriptions","organizations_url":"https://api.github.com/users/mccottry/orgs","repos_url":"https://api.github.com/users/mccottry/repos","events_url":"https://api.github.com/users/mccottry/events{/privacy}","received_events_url":"https://api.github.com/users/mccottry/received_events","type":"User","site_admin":false},"body":"… as shipping is selected","created_at":"2018-11-14T09:25:37Z","updated_at":"2018-11-14T15:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29ba507485dc4961ef668a30fbe13102450cbd0a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"johnmccombs1","id":2002287,"node_id":"MDQ6VXNlcjIwMDIyODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2002287?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmccombs1","html_url":"https://github.com/johnmccombs1","followers_url":"https://api.github.com/users/johnmccombs1/followers","following_url":"https://api.github.com/users/johnmccombs1/following{/other_user}","gists_url":"https://api.github.com/users/johnmccombs1/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmccombs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmccombs1/subscriptions","organizations_url":"https://api.github.com/users/johnmccombs1/orgs","repos_url":"https://api.github.com/users/johnmccombs1/repos","events_url":"https://api.github.com/users/johnmccombs1/events{/privacy}","received_events_url":"https://api.github.com/users/johnmccombs1/received_events","type":"User","site_admin":false},{"login":"LiHsuanChen","id":5004011,"node_id":"MDQ6VXNlcjUwMDQwMTE=","avatar_url":"https://avatars2.githubusercontent.com/u/5004011?v=4","gravatar_id":"","url":"https://api.github.com/users/LiHsuanChen","html_url":"https://github.com/LiHsuanChen","followers_url":"https://api.github.com/users/LiHsuanChen/followers","following_url":"https://api.github.com/users/LiHsuanChen/following{/other_user}","gists_url":"https://api.github.com/users/LiHsuanChen/gists{/gist_id}","starred_url":"https://api.github.com/users/LiHsuanChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiHsuanChen/subscriptions","organizations_url":"https://api.github.com/users/LiHsuanChen/orgs","repos_url":"https://api.github.com/users/LiHsuanChen/repos","events_url":"https://api.github.com/users/LiHsuanChen/events{/privacy}","received_events_url":"https://api.github.com/users/LiHsuanChen/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251/commits","review_comments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251/comments","review_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/251/comments","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento1/statuses/6357563a86aa77bd718ea505f9459833c59332e5","head":{"label":"BoltApp:admin-force-prefill-billing-as-shipping","ref":"admin-force-prefill-billing-as-shipping","sha":"6357563a86aa77bd718ea505f9459833c59332e5","user":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"repo":{"id":125256996,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUyNTY5OTY=","name":"bolt-magento1","full_name":"BoltApp/bolt-magento1","private":false,"owner":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltApp/bolt-magento1","description":"Bolt plugin for magento1","fork":false,"url":"https://api.github.com/repos/BoltApp/bolt-magento1","forks_url":"https://api.github.com/repos/BoltApp/bolt-magento1/forks","keys_url":"https://api.github.com/repos/BoltApp/bolt-magento1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltApp/bolt-magento1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltApp/bolt-magento1/teams","hooks_url":"https://api.github.com/repos/BoltApp/bolt-magento1/hooks","issue_events_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/events{/number}","events_url":"https://api.github.com/repos/BoltApp/bolt-magento1/events","assignees_url":"https://api.github.com/repos/BoltApp/bolt-magento1/assignees{/user}","branches_url":"https://api.github.com/repos/BoltApp/bolt-magento1/branches{/branch}","tags_url":"https://api.github.com/repos/BoltApp/bolt-magento1/tags","blobs_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento1/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltApp/bolt-magento1/languages","stargazers_url":"https://api.github.com/repos/BoltApp/bolt-magento1/stargazers","contributors_url":"https://api.github.com/repos/BoltApp/bolt-magento1/contributors","subscribers_url":"https://api.github.com/repos/BoltApp/bolt-magento1/subscribers","subscription_url":"https://api.github.com/repos/BoltApp/bolt-magento1/subscription","commits_url":"https://api.github.com/repos/BoltApp/bolt-magento1/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltApp/bolt-magento1/contents/{+path}","compare_url":"https://api.github.com/repos/BoltApp/bolt-magento1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltApp/bolt-magento1/merges","archive_url":"https://api.github.com/repos/BoltApp/bolt-magento1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltApp/bolt-magento1/downloads","issues_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues{/number}","pulls_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltApp/bolt-magento1/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltApp/bolt-magento1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltApp/bolt-magento1/labels{/name}","releases_url":"https://api.github.com/repos/BoltApp/bolt-magento1/releases{/id}","deployments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/deployments","created_at":"2018-03-14T18:30:30Z","updated_at":"2018-11-14T06:27:05Z","pushed_at":"2018-11-14T09:25:38Z","git_url":"git://github.com/BoltApp/bolt-magento1.git","ssh_url":"git@github.com:BoltApp/bolt-magento1.git","clone_url":"https://github.com/BoltApp/bolt-magento1.git","svn_url":"https://github.com/BoltApp/bolt-magento1","homepage":null,"size":2803,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":5,"open_issues":4,"watchers":3,"default_branch":"develop"}},"base":{"label":"BoltApp:develop","ref":"develop","sha":"8f6dff29f4fb4b105968aea945c1e1d3f105ae0b","user":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"repo":{"id":125256996,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUyNTY5OTY=","name":"bolt-magento1","full_name":"BoltApp/bolt-magento1","private":false,"owner":{"login":"BoltApp","id":8142070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDIwNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8142070?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltApp","html_url":"https://github.com/BoltApp","followers_url":"https://api.github.com/users/BoltApp/followers","following_url":"https://api.github.com/users/BoltApp/following{/other_user}","gists_url":"https://api.github.com/users/BoltApp/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltApp/subscriptions","organizations_url":"https://api.github.com/users/BoltApp/orgs","repos_url":"https://api.github.com/users/BoltApp/repos","events_url":"https://api.github.com/users/BoltApp/events{/privacy}","received_events_url":"https://api.github.com/users/BoltApp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltApp/bolt-magento1","description":"Bolt plugin for magento1","fork":false,"url":"https://api.github.com/repos/BoltApp/bolt-magento1","forks_url":"https://api.github.com/repos/BoltApp/bolt-magento1/forks","keys_url":"https://api.github.com/repos/BoltApp/bolt-magento1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltApp/bolt-magento1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltApp/bolt-magento1/teams","hooks_url":"https://api.github.com/repos/BoltApp/bolt-magento1/hooks","issue_events_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/events{/number}","events_url":"https://api.github.com/repos/BoltApp/bolt-magento1/events","assignees_url":"https://api.github.com/repos/BoltApp/bolt-magento1/assignees{/user}","branches_url":"https://api.github.com/repos/BoltApp/bolt-magento1/branches{/branch}","tags_url":"https://api.github.com/repos/BoltApp/bolt-magento1/tags","blobs_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltApp/bolt-magento1/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltApp/bolt-magento1/languages","stargazers_url":"https://api.github.com/repos/BoltApp/bolt-magento1/stargazers","contributors_url":"https://api.github.com/repos/BoltApp/bolt-magento1/contributors","subscribers_url":"https://api.github.com/repos/BoltApp/bolt-magento1/subscribers","subscription_url":"https://api.github.com/repos/BoltApp/bolt-magento1/subscription","commits_url":"https://api.github.com/repos/BoltApp/bolt-magento1/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltApp/bolt-magento1/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltApp/bolt-magento1/contents/{+path}","compare_url":"https://api.github.com/repos/BoltApp/bolt-magento1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltApp/bolt-magento1/merges","archive_url":"https://api.github.com/repos/BoltApp/bolt-magento1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltApp/bolt-magento1/downloads","issues_url":"https://api.github.com/repos/BoltApp/bolt-magento1/issues{/number}","pulls_url":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltApp/bolt-magento1/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltApp/bolt-magento1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltApp/bolt-magento1/labels{/name}","releases_url":"https://api.github.com/repos/BoltApp/bolt-magento1/releases{/id}","deployments_url":"https://api.github.com/repos/BoltApp/bolt-magento1/deployments","created_at":"2018-03-14T18:30:30Z","updated_at":"2018-11-14T06:27:05Z","pushed_at":"2018-11-14T09:25:38Z","git_url":"git://github.com/BoltApp/bolt-magento1.git","ssh_url":"git@github.com:BoltApp/bolt-magento1.git","clone_url":"https://github.com/BoltApp/bolt-magento1.git","svn_url":"https://github.com/BoltApp/bolt-magento1","homepage":null,"size":2803,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"osl-3.0","name":"Open Software License 3.0","spdx_id":"OSL-3.0","url":"https://api.github.com/licenses/osl-3.0","node_id":"MDc6TGljZW5zZTE2"},"forks":5,"open_issues":4,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251"},"html":{"href":"https://github.com/BoltApp/bolt-magento1/pull/251"},"issue":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/251"},"comments":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/BoltApp/bolt-magento1/statuses/6357563a86aa77bd718ea505f9459833c59332e5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"daisy1754"}}