{"action":"opened","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/11843","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/11843/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/11843/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/11843/events","html_url":"https://github.com/dotCMS/core/issues/11843","id":234532527,"number":11843,"title":"Relationship order is not preserved when saving a child","user":{"login":"jorith88","id":2497310,"avatar_url":"https://avatars1.githubusercontent.com/u/2497310?v=3","gravatar_id":"","url":"https://api.github.com/users/jorith88","html_url":"https://github.com/jorith88","followers_url":"https://api.github.com/users/jorith88/followers","following_url":"https://api.github.com/users/jorith88/following{/other_user}","gists_url":"https://api.github.com/users/jorith88/gists{/gist_id}","starred_url":"https://api.github.com/users/jorith88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorith88/subscriptions","organizations_url":"https://api.github.com/users/jorith88/orgs","repos_url":"https://api.github.com/users/jorith88/repos","events_url":"https://api.github.com/users/jorith88/events{/privacy}","received_events_url":"https://api.github.com/users/jorith88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-08T13:45:14Z","updated_at":"2017-06-08T13:45:14Z","closed_at":null,"body":"When you have a relationship between two content types and edit + save one of the children, this child moves to the last position in the relationship order. This can be reproduced on the demo site by following the steps below:\r\n\r\n## Expected Behavior\r\nThe order should not change. It should only change if you explicitly drag & drop the child to another place.\r\n\r\n## Current Behavior\r\nChild content seems to be sorted on modDate automatically. It looks like this won't happen with older content (that is perhaps created before a dotCMS upgrade?)\r\n\r\n## Known Workarounds\r\nManually dragging the children to the correct order after each change of a child.\r\n\r\n## Steps to Reproduce (for bugs)\r\nOn demo.dotcms.com:\r\n1. Create a **new** 'Blog' contentlet\r\n2. Save the Blog and re-open it\r\n3. Relate three **new** Comments\r\n4. Remember the order of the comments as seen in the Blog content\r\n5. Edit the first comment and save it\r\n6. The first comment has now moved to the last place\r\n\r\n## Context\r\nWe have a widget that contains child content to render columns on a page. After changing a column, it moves to the right. We have to change it to the correct location each time we edit one of the columns.\r\n\r\n## Your Environment\r\n* dotCMS version used: 3.7.1 (but can also be reproduced in 4.1.0)\r\n* Browser Name and version: Chrome 58\r\n* Operating System and version: Windows Server 2012 R2\r\n* Application Server and version: Bundled Tomcat\r\n* Java Brand and version: Oracle Java 8u131\r\n* Database and version: Postgres 9.6\r\n* Application module (if apply):"}}
{"actor":{"display_login":"jorith88"}}