{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/12968","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12968/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12968/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12968/events","html_url":"https://github.com/joomla/joomla-cms/pull/12968","id":190956990,"number":12968,"title":"[com_fields] Add a callback for context mapping","user":{"login":"laoneo","id":251072,"avatar_url":"https://avatars.githubusercontent.com/u/251072?v=3","gravatar_id":"","url":"https://api.github.com/users/laoneo","html_url":"https://github.com/laoneo","followers_url":"https://api.github.com/users/laoneo/followers","following_url":"https://api.github.com/users/laoneo/following{/other_user}","gists_url":"https://api.github.com/users/laoneo/gists{/gist_id}","starred_url":"https://api.github.com/users/laoneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laoneo/subscriptions","organizations_url":"https://api.github.com/users/laoneo/orgs","repos_url":"https://api.github.com/users/laoneo/repos","events_url":"https://api.github.com/users/laoneo/events{/privacy}","received_events_url":"https://api.github.com/users/laoneo/received_events","type":"User","site_admin":false},"labels":[{"id":60721348,"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-11-22T10:11:25Z","updated_at":"2016-12-23T10:52:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/12968","html_url":"https://github.com/joomla/joomla-cms/pull/12968","diff_url":"https://github.com/joomla/joomla-cms/pull/12968.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/12968.patch"},"body":"Pull Request for Issue #12732.\r\n\r\n### Summary of Changes\r\nAs we have different contexts between front end and back end for the same action, this PR introduces a callback functionality that a component can map contexts.\r\n\r\n- Additionally a potential BC break will be reverted where the form name for the contact form was changed.\r\n- An unnecessary DB query could be removed.\r\n\r\nWhat can be discussed is to merge the *HelperFields classes in the basic *Helper classes as they mostly exist already.\r\n\r\n### Testing Instructions\r\n- Save users and articles on front and back end.\r\n- Create some custom fields for the contacts mail context\r\n- Make a contact form menu item and do the request\r\n\r\n### Expected results\r\nAll should work as without the patch. Fields should be saved and the contact mail should contain the custom fields."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/268972627","html_url":"https://github.com/joomla/joomla-cms/pull/12968#issuecomment-268972627","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/12968","id":268972627,"user":{"login":"Bakual","id":1018684,"avatar_url":"https://avatars.githubusercontent.com/u/1018684?v=3","gravatar_id":"","url":"https://api.github.com/users/Bakual","html_url":"https://github.com/Bakual","followers_url":"https://api.github.com/users/Bakual/followers","following_url":"https://api.github.com/users/Bakual/following{/other_user}","gists_url":"https://api.github.com/users/Bakual/gists{/gist_id}","starred_url":"https://api.github.com/users/Bakual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bakual/subscriptions","organizations_url":"https://api.github.com/users/Bakual/orgs","repos_url":"https://api.github.com/users/Bakual/repos","events_url":"https://api.github.com/users/Bakual/events{/privacy}","received_events_url":"https://api.github.com/users/Bakual/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T10:52:11Z","updated_at":"2016-12-23T10:52:11Z","body":"It *may* be useful for other cases as well in future. So I wouldn't tie it directly to com_fields."}}
{"actor":{"display_login":"Bakual"}}