{"action":"closed","issue":{"url":"https://api.github.com/repos/octobercms/october/issues/1912","repository_url":"https://api.github.com/repos/octobercms/october","labels_url":"https://api.github.com/repos/octobercms/october/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/octobercms/october/issues/1912/comments","events_url":"https://api.github.com/repos/octobercms/october/issues/1912/events","html_url":"https://github.com/octobercms/october/issues/1912","id":146580451,"number":1912,"title":"Partial updated in relationrender switches context","user":{"login":"tschallacka","id":8638425,"avatar_url":"https://avatars.githubusercontent.com/u/8638425?v=3","gravatar_id":"","url":"https://api.github.com/users/tschallacka","html_url":"https://github.com/tschallacka","followers_url":"https://api.github.com/users/tschallacka/followers","following_url":"https://api.github.com/users/tschallacka/following{/other_user}","gists_url":"https://api.github.com/users/tschallacka/gists{/gist_id}","starred_url":"https://api.github.com/users/tschallacka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschallacka/subscriptions","organizations_url":"https://api.github.com/users/tschallacka/orgs","repos_url":"https://api.github.com/users/tschallacka/repos","events_url":"https://api.github.com/users/tschallacka/events{/privacy}","received_events_url":"https://api.github.com/users/tschallacka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/octobercms/october/labels/Status:%20Abandoned","name":"Status: Abandoned","color":"000000"},{"url":"https://api.github.com/repos/octobercms/october/labels/Type:%20Unconfirmed%20Bug","name":"Type: Unconfirmed Bug","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-07T10:55:35Z","updated_at":"2016-05-25T09:45:18Z","closed_at":"2016-05-25T09:45:18Z","body":"I have the following fields.yaml\r\n\r\n```\r\nfields:\r\n    name: \r\n        label: Title\r\n    textlines:\r\n        context: [create]\r\n        label: Text fields\r\n        type: belongs_to_selector\r\n        valueFrom: name\r\n    add_new_line:\r\n        context: [update]\r\n        label: Text fields\r\n        type: partial\r\n        path: $/ExitControl/ExitTextSnippets/Controllers/TextContainer/_add_new_line.htm\r\n        \r\n    textlines_sortorder:\r\n        dependsOn: add_new_line\r\n        context: [create,update]\r\n        label: Text fields\r\n        type: partial\r\n        path: $/ExitControl/ExitTextSnippets/Controllers/TextContainer/_textlines_sortorder.htm\r\n```\r\n\r\nwhen `add_new_line` changes the context changes from RelationManager to the main controller\r\n\r\nbefore automatic update:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8638425/14348930/cf68c91e-fcbf-11e5-9c4e-5f065db854f3.png)\r\n\r\nAfter add_new_line changed\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8638425/14348944/ea5ba840-fcbf-11e5-832c-df7cc373f38d.png)\r\n\r\nIt would be nice if the context would stay the same even for the ajax refresh code.\r\n\r\n\r\n"}}
{"actor":{"display_login":"daftspunk"}}