{"action":"created","issue":{"url":"https://api.github.com/repos/swanandp/acts_as_list/issues/134","labels_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/134/comments","events_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/134/events","html_url":"https://github.com/swanandp/acts_as_list/issues/134","id":46196279,"number":134,"title":"shuffle_positions_on_intermediate_items is creating problems","user":{"login":"jordansinger","id":110813,"avatar_url":"https://avatars.githubusercontent.com/u/110813?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansinger","html_url":"https://github.com/jordansinger","followers_url":"https://api.github.com/users/jordansinger/followers","following_url":"https://api.github.com/users/jordansinger/following{/other_user}","gists_url":"https://api.github.com/users/jordansinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansinger/subscriptions","organizations_url":"https://api.github.com/users/jordansinger/orgs","repos_url":"https://api.github.com/users/jordansinger/repos","events_url":"https://api.github.com/users/jordansinger/events{/privacy}","received_events_url":"https://api.github.com/users/jordansinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-10-19T04:28:44Z","updated_at":"2015-01-19T21:41:35Z","closed_at":null,"body":"I have a case that is causing problems any time an object is updated.\r\n\r\nSay I have an array of skills in an HTML form. Anytime I update the very first skill and send it to the server, it moves down 1 position. This is the query that is ran:\r\n\r\n```\r\nSQL (0.6ms)  UPDATE `skills` SET position = (position - 1) WHERE (`skills`.`resume_id` = 285 AND position > 0 AND position <= 1 AND id != '254')\r\n```\r\n\r\nThe query above is moving the first item in the array of skills down one, which is very frustrating. Please help."},"comment":{"url":"https://api.github.com/repos/swanandp/acts_as_list/issues/comments/70566137","html_url":"https://github.com/swanandp/acts_as_list/issues/134#issuecomment-70566137","issue_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/134","id":70566137,"user":{"login":"jordansinger","id":110813,"avatar_url":"https://avatars.githubusercontent.com/u/110813?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansinger","html_url":"https://github.com/jordansinger","followers_url":"https://api.github.com/users/jordansinger/followers","following_url":"https://api.github.com/users/jordansinger/following{/other_user}","gists_url":"https://api.github.com/users/jordansinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansinger/subscriptions","organizations_url":"https://api.github.com/users/jordansinger/orgs","repos_url":"https://api.github.com/users/jordansinger/repos","events_url":"https://api.github.com/users/jordansinger/events{/privacy}","received_events_url":"https://api.github.com/users/jordansinger/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T21:41:35Z","updated_at":"2015-01-19T21:41:35Z","body":"@chadmmills This seems like the fix! Where did you put both of those respective blocks of code?"}}