{"action":"created","issue":{"url":"https://api.github.com/repos/octobercms/october/issues/3381","repository_url":"https://api.github.com/repos/octobercms/october","labels_url":"https://api.github.com/repos/octobercms/october/issues/3381/labels{/name}","comments_url":"https://api.github.com/repos/octobercms/october/issues/3381/comments","events_url":"https://api.github.com/repos/octobercms/october/issues/3381/events","html_url":"https://github.com/octobercms/october/issues/3381","id":294156019,"number":3381,"title":"Backend Form Update Issue","user":{"login":"ibanks","id":3674972,"avatar_url":"https://avatars1.githubusercontent.com/u/3674972?v=4","gravatar_id":"","url":"https://api.github.com/users/ibanks","html_url":"https://github.com/ibanks","followers_url":"https://api.github.com/users/ibanks/followers","following_url":"https://api.github.com/users/ibanks/following{/other_user}","gists_url":"https://api.github.com/users/ibanks/gists{/gist_id}","starred_url":"https://api.github.com/users/ibanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibanks/subscriptions","organizations_url":"https://api.github.com/users/ibanks/orgs","repos_url":"https://api.github.com/users/ibanks/repos","events_url":"https://api.github.com/users/ibanks/events{/privacy}","received_events_url":"https://api.github.com/users/ibanks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-03T23:58:53Z","updated_at":"2018-02-04T04:29:26Z","closed_at":null,"author_association":"NONE","body":"##### Expected behavior\r\nOn the backend, when using the built in FormController to build a custom slider plugin that uses the widget's create, update, and preview controller views, I expect when saving the slider to be updated, using the update view along with the example for the update.htm file provided in the OctoberCMS docs, that the slider and any updated content is saved successfully.\r\n\r\n##### Actual behavior\r\nWhat is happening is that it's asking me to upload an image each time when the image is already there. This is coming from the onSave method in the FormController. I do not understand why it is looking for an image on the update page when it is already there.\r\n\r\n##### Reproduce steps\r\nI'm using the native example provided in the Backend -> Forms section of the docs. I copied the code for the create, update, and preview files. On the update page, its clearly referencing the newly created model record with the id at the end of the url.\r\n\r\n##### October build\r\nVersion: 431\r\n"},"comment":{"url":"https://api.github.com/repos/octobercms/october/issues/comments/362880047","html_url":"https://github.com/octobercms/october/issues/3381#issuecomment-362880047","issue_url":"https://api.github.com/repos/octobercms/october/issues/3381","id":362880047,"user":{"login":"LukeTowers","id":7253840,"avatar_url":"https://avatars0.githubusercontent.com/u/7253840?v=4","gravatar_id":"","url":"https://api.github.com/users/LukeTowers","html_url":"https://github.com/LukeTowers","followers_url":"https://api.github.com/users/LukeTowers/followers","following_url":"https://api.github.com/users/LukeTowers/following{/other_user}","gists_url":"https://api.github.com/users/LukeTowers/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeTowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeTowers/subscriptions","organizations_url":"https://api.github.com/users/LukeTowers/orgs","repos_url":"https://api.github.com/users/LukeTowers/repos","events_url":"https://api.github.com/users/LukeTowers/events{/privacy}","received_events_url":"https://api.github.com/users/LukeTowers/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T04:29:26Z","updated_at":"2018-02-04T04:29:26Z","author_association":"MEMBER","body":"Post your code for the view (`update.htm`), your controller class, your config_form.yaml, your fields.yaml, and your model class. Make sure to enclose it properly in three backticks at the start and end of each file to indicate that it is code. @ibanks "}}
{"actor":{"display_login":"LukeTowers"}}