{"action":"created","issue":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1217","labels_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1217/labels{/name}","comments_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1217/comments","events_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1217/events","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1217","id":85075392,"number":1217,"title":"Creating new field of type textlanguage on template edit doesn't add it","user":{"login":"somatonic","id":370148,"avatar_url":"https://avatars.githubusercontent.com/u/370148?v=3","gravatar_id":"","url":"https://api.github.com/users/somatonic","html_url":"https://github.com/somatonic","followers_url":"https://api.github.com/users/somatonic/followers","following_url":"https://api.github.com/users/somatonic/following{/other_user}","gists_url":"https://api.github.com/users/somatonic/gists{/gist_id}","starred_url":"https://api.github.com/users/somatonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somatonic/subscriptions","organizations_url":"https://api.github.com/users/somatonic/orgs","repos_url":"https://api.github.com/users/somatonic/repos","events_url":"https://api.github.com/users/somatonic/events{/privacy}","received_events_url":"https://api.github.com/users/somatonic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/labels/Can't%20reproduce","name":"Can't reproduce","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-04T12:28:45Z","updated_at":"2015-07-13T15:03:55Z","closed_at":null,"body":"As the title says."},"comment":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/comments/120960523","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1217#issuecomment-120960523","issue_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1217","id":120960523,"user":{"login":"adrianbj","id":871211,"avatar_url":"https://avatars.githubusercontent.com/u/871211?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianbj","html_url":"https://github.com/adrianbj","followers_url":"https://api.github.com/users/adrianbj/followers","following_url":"https://api.github.com/users/adrianbj/following{/other_user}","gists_url":"https://api.github.com/users/adrianbj/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianbj/subscriptions","organizations_url":"https://api.github.com/users/adrianbj/orgs","repos_url":"https://api.github.com/users/adrianbj/repos","events_url":"https://api.github.com/users/adrianbj/events{/privacy}","received_events_url":"https://api.github.com/users/adrianbj/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T15:03:55Z","updated_at":"2015-07-13T15:03:55Z","body":"@teppokoivula - I think what you are seeing is expected behavior - closing the modal after the first save won't add the field to the template, nor will it add it to the dropdown list of available fields. You need to click save the second time for the field to be added to the template. If you think this is confusing I might be able to improve this - perhaps it could be added after the initial save - I would have to trigger slightly differently though as it needs the ID of the new field, so would have to be after the save, not on the initial click of the save button.\r\n\r\nAs for the issues @somatonic is having - I noticed them on one PW install but not others. Regardless, I think they should be fixed in this version:\r\nhttps://gist.github.com/adrianbj/38324a9a08fe1241a373\r\n\r\nI believe the issues were introduced when the new core PW modals were used with this feature, but not positive.\r\n\r\nPlease let me know if that works for you now."}}