{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3787","repository_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3787/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3787/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3787/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3787","id":138840737,"number":3787,"title":"[API] data added in beforeSend() is not sent when serializeForm == true","user":{"login":"shadoWalker89","id":1449151,"avatar_url":"https://avatars.githubusercontent.com/u/1449151?v=3","gravatar_id":"","url":"https://api.github.com/users/shadoWalker89","html_url":"https://github.com/shadoWalker89","followers_url":"https://api.github.com/users/shadoWalker89/followers","following_url":"https://api.github.com/users/shadoWalker89/following{/other_user}","gists_url":"https://api.github.com/users/shadoWalker89/gists{/gist_id}","starred_url":"https://api.github.com/users/shadoWalker89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadoWalker89/subscriptions","organizations_url":"https://api.github.com/users/shadoWalker89/orgs","repos_url":"https://api.github.com/users/shadoWalker89/repos","events_url":"https://api.github.com/users/shadoWalker89/events{/privacy}","received_events_url":"https://api.github.com/users/shadoWalker89/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Evaluating%20Bug%20/%20Change","name":"Evaluating Bug / Change","color":"f7c6c7"},{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Needs%20Test%20Case","name":"Needs Test Case","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/27","html_url":"https://github.com/Semantic-Org/Semantic-UI/milestones/2.2","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/27/labels","id":1244517,"number":27,"title":"2.2","description":"","creator":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":3,"state":"open","created_at":"2015-08-06T20:44:12Z","updated_at":"2016-03-06T22:29:07Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-06T21:28:03Z","updated_at":"2016-03-07T04:31:50Z","closed_at":null,"body":"Hi,\r\n\r\nI'm sending a form using the api, the problem is, when the serializeForm is true, the data added in the beforeSend() callback are not sent to the server.\r\n\r\nAlso data in the data attribute is not send too.\r\n\r\n```js\r\n$('form').api({\r\n    serializeForm: true,\r\n    data: {\r\n        some_key: 'some data' //Not sent\r\n    },\r\n    beforeSend: function (settings) {\r\n        settings.data.another_key = 'other data'; //Not sent\r\n\r\n        return settings;\r\n    }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/193093761","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3787#issuecomment-193093761","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3787","id":193093761,"user":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T04:31:50Z","updated_at":"2016-03-07T04:31:50Z","body":"I've gone ahead and created my own test case and was unable to reproduce your issue. All three keys are being added correctly, both in beforeSend, settings object, and from form.\r\n\r\nhttp://jsfiddle.net/c4mcceho/"}}