{"action":"created","issue":{"url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/2","repository_url":"https://api.github.com/repos/tractorcow/silverstripe-userforms","labels_url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/2/comments","events_url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/2/events","html_url":"https://github.com/tractorcow/silverstripe-userforms/pull/2","id":133900917,"number":2,"title":"fix to support modeladmin and/or embedding in page","user":{"login":"mikeyc7m","id":6045159,"avatar_url":"https://avatars.githubusercontent.com/u/6045159?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeyc7m","html_url":"https://github.com/mikeyc7m","followers_url":"https://api.github.com/users/mikeyc7m/followers","following_url":"https://api.github.com/users/mikeyc7m/following{/other_user}","gists_url":"https://api.github.com/users/mikeyc7m/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeyc7m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeyc7m/subscriptions","organizations_url":"https://api.github.com/users/mikeyc7m/orgs","repos_url":"https://api.github.com/users/mikeyc7m/repos","events_url":"https://api.github.com/users/mikeyc7m/events{/privacy}","received_events_url":"https://api.github.com/users/mikeyc7m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-16T06:52:00Z","updated_at":"2016-02-19T01:04:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/pulls/2","html_url":"https://github.com/tractorcow/silverstripe-userforms/pull/2","diff_url":"https://github.com/tractorcow/silverstripe-userforms/pull/2.diff","patch_url":"https://github.com/tractorcow/silverstripe-userforms/pull/2.patch"},"body":"When the form is used outside the normal page context (ie. in modeladmin or embedded in another page) the new email recipient can't rely on the CMS page session variable to identify the parent. So it dies. It's safer to skip relationships until the parent is properly linked. This happens after the first write, which seems to happen immediately, so those fields get filled anyway."},"comment":{"url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/comments/185999828","html_url":"https://github.com/tractorcow/silverstripe-userforms/pull/2#issuecomment-185999828","issue_url":"https://api.github.com/repos/tractorcow/silverstripe-userforms/issues/2","id":185999828,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T01:04:07Z","updated_at":"2016-02-19T01:04:07Z","body":"Oh I see, you're actually creating the pages in modeladmin... not the recipients directly."}}