{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/548","repository_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle","labels_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/548/comments","events_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/548/events","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/548","id":148664437,"number":548,"title":"EZP-25641: Image missing when translating content","user":{"login":"StephaneDiot","id":5558766,"avatar_url":"https://avatars.githubusercontent.com/u/5558766?v=3","gravatar_id":"","url":"https://api.github.com/users/StephaneDiot","html_url":"https://github.com/StephaneDiot","followers_url":"https://api.github.com/users/StephaneDiot/followers","following_url":"https://api.github.com/users/StephaneDiot/following{/other_user}","gists_url":"https://api.github.com/users/StephaneDiot/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneDiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneDiot/subscriptions","organizations_url":"https://api.github.com/users/StephaneDiot/orgs","repos_url":"https://api.github.com/users/StephaneDiot/repos","events_url":"https://api.github.com/users/StephaneDiot/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneDiot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T13:42:34Z","updated_at":"2016-04-19T08:24:29Z","closed_at":"2016-04-19T08:23:52Z","pull_request":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/548","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/548","diff_url":"https://github.com/ezsystems/PlatformUIBundle/pull/548.diff","patch_url":"https://github.com/ezsystems/PlatformUIBundle/pull/548.patch"},"body":"jira: https://jira.ez.no/browse/EZP-25641\r\n\r\n## Description\r\n\r\nImage, media file and binary file fields were disapearing when translating a content.\r\nThis behaviour came from the fact that currently if we are not updating the file attached to one of these fields, this means \"no changes\" and we were not returning a new fieldValue (so we are using the already filled one). This was done not to send the same file again and again.\r\n\r\nBut when translating a content the field value is not filled, but the file attached to the field is loaded (without activating the 'updated' flag). So when we are publishing the content with the new translation, those fields, were not saved.\r\n\r\nTo make it work with translation, we now check that the file is not updated **and that the language code of the current exist in the translations list**\r\n\r\n## Tests\r\n\r\n- manually and unit tested"},"comment":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/comments/211791211","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/548#issuecomment-211791211","issue_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/548","id":211791211,"user":{"login":"StephaneDiot","id":5558766,"avatar_url":"https://avatars.githubusercontent.com/u/5558766?v=3","gravatar_id":"","url":"https://api.github.com/users/StephaneDiot","html_url":"https://github.com/StephaneDiot","followers_url":"https://api.github.com/users/StephaneDiot/followers","following_url":"https://api.github.com/users/StephaneDiot/following{/other_user}","gists_url":"https://api.github.com/users/StephaneDiot/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneDiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneDiot/subscriptions","organizations_url":"https://api.github.com/users/StephaneDiot/orgs","repos_url":"https://api.github.com/users/StephaneDiot/repos","events_url":"https://api.github.com/users/StephaneDiot/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneDiot/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T08:24:29Z","updated_at":"2016-04-19T08:24:29Z","body":"re-opened ( based on 1.2 ) --->  https://github.com/ezsystems/PlatformUIBundle/pull/554"}}