{"action":"closed","issue":{"url":"https://api.github.com/repos/umts/ft-forms/issues/38","labels_url":"https://api.github.com/repos/umts/ft-forms/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/umts/ft-forms/issues/38/comments","events_url":"https://api.github.com/repos/umts/ft-forms/issues/38/events","html_url":"https://github.com/umts/ft-forms/issues/38","id":103547389,"number":38,"title":"in app/models/form_drafts, new_field_number does not account for all scenarios","user":{"login":"Anbranin","id":9645316,"avatar_url":"https://avatars.githubusercontent.com/u/9645316?v=3","gravatar_id":"","url":"https://api.github.com/users/Anbranin","html_url":"https://github.com/Anbranin","followers_url":"https://api.github.com/users/Anbranin/followers","following_url":"https://api.github.com/users/Anbranin/following{/other_user}","gists_url":"https://api.github.com/users/Anbranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Anbranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anbranin/subscriptions","organizations_url":"https://api.github.com/users/Anbranin/orgs","repos_url":"https://api.github.com/users/Anbranin/repos","events_url":"https://api.github.com/users/Anbranin/events{/privacy}","received_events_url":"https://api.github.com/users/Anbranin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dfaulken","id":3988134,"avatar_url":"https://avatars.githubusercontent.com/u/3988134?v=3","gravatar_id":"","url":"https://api.github.com/users/dfaulken","html_url":"https://github.com/dfaulken","followers_url":"https://api.github.com/users/dfaulken/followers","following_url":"https://api.github.com/users/dfaulken/following{/other_user}","gists_url":"https://api.github.com/users/dfaulken/gists{/gist_id}","starred_url":"https://api.github.com/users/dfaulken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfaulken/subscriptions","organizations_url":"https://api.github.com/users/dfaulken/orgs","repos_url":"https://api.github.com/users/dfaulken/repos","events_url":"https://api.github.com/users/dfaulken/events{/privacy}","received_events_url":"https://api.github.com/users/dfaulken/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-27T16:31:59Z","updated_at":"2015-08-27T17:17:15Z","closed_at":"2015-08-27T17:17:15Z","body":"If an error occurs and the fields are numbered incorrectly, say, 1 and 3 when there are 2 fields.  `fields.count + 1` will make the new field numbered 3, which will fail validation. Better to copy how it is in jobapps which currently would handle that situation."}}