{"action":"opened","issue":{"url":"https://api.github.com/repos/neos/neos-development-collection/issues/1696","repository_url":"https://api.github.com/repos/neos/neos-development-collection","labels_url":"https://api.github.com/repos/neos/neos-development-collection/issues/1696/labels{/name}","comments_url":"https://api.github.com/repos/neos/neos-development-collection/issues/1696/comments","events_url":"https://api.github.com/repos/neos/neos-development-collection/issues/1696/events","html_url":"https://github.com/neos/neos-development-collection/issues/1696","id":256962452,"number":1696,"title":"Cut & paste across pages with dimensions loses ContentCollection child nodes","user":{"login":"kdambekalns","id":95873,"avatar_url":"https://avatars2.githubusercontent.com/u/95873?v=4","gravatar_id":"","url":"https://api.github.com/users/kdambekalns","html_url":"https://github.com/kdambekalns","followers_url":"https://api.github.com/users/kdambekalns/followers","following_url":"https://api.github.com/users/kdambekalns/following{/other_user}","gists_url":"https://api.github.com/users/kdambekalns/gists{/gist_id}","starred_url":"https://api.github.com/users/kdambekalns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdambekalns/subscriptions","organizations_url":"https://api.github.com/users/kdambekalns/orgs","repos_url":"https://api.github.com/users/kdambekalns/repos","events_url":"https://api.github.com/users/kdambekalns/events{/privacy}","received_events_url":"https://api.github.com/users/kdambekalns/received_events","type":"User","site_admin":false},"labels":[{"id":274939120,"url":"https://api.github.com/repos/neos/neos-development-collection/labels/P:%20Content%20Repository","name":"P: Content Repository","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"kdambekalns","id":95873,"avatar_url":"https://avatars2.githubusercontent.com/u/95873?v=4","gravatar_id":"","url":"https://api.github.com/users/kdambekalns","html_url":"https://github.com/kdambekalns","followers_url":"https://api.github.com/users/kdambekalns/followers","following_url":"https://api.github.com/users/kdambekalns/following{/other_user}","gists_url":"https://api.github.com/users/kdambekalns/gists{/gist_id}","starred_url":"https://api.github.com/users/kdambekalns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdambekalns/subscriptions","organizations_url":"https://api.github.com/users/kdambekalns/orgs","repos_url":"https://api.github.com/users/kdambekalns/repos","events_url":"https://api.github.com/users/kdambekalns/events{/privacy}","received_events_url":"https://api.github.com/users/kdambekalns/received_events","type":"User","site_admin":false},"assignees":[{"login":"kdambekalns","id":95873,"avatar_url":"https://avatars2.githubusercontent.com/u/95873?v=4","gravatar_id":"","url":"https://api.github.com/users/kdambekalns","html_url":"https://github.com/kdambekalns","followers_url":"https://api.github.com/users/kdambekalns/followers","following_url":"https://api.github.com/users/kdambekalns/following{/other_user}","gists_url":"https://api.github.com/users/kdambekalns/gists{/gist_id}","starred_url":"https://api.github.com/users/kdambekalns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdambekalns/subscriptions","organizations_url":"https://api.github.com/users/kdambekalns/orgs","repos_url":"https://api.github.com/users/kdambekalns/repos","events_url":"https://api.github.com/users/kdambekalns/events{/privacy}","received_events_url":"https://api.github.com/users/kdambekalns/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-09-12T08:39:10Z","updated_at":"2017-09-12T08:39:10Z","closed_at":null,"author_association":"OWNER","body":"### Description\r\n\r\nWhen cutting and pasting nodes with content collection children in a site with dimensions, content collections get lost during publishing.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Set up the demo site (`composer create-project neos/neos-base-distribution=2.3.16 testsetup`, migrate DB, import site, create user)\r\n2. Create two pages in _en_US_, named _Test 1_ and _Test 2_\r\n3. On _Test 1_ create a two-column element\r\n4. In the first column of that element, create another two-column-element\r\n5. Switch language to _de_, choose \"Create & Copy\" when asked\r\n6. Publish all changes\r\n7. Switch back to _en_US_\r\n8. Cut the nested two-column element\r\n9. Paste it into the _Test 2_ page\r\n10. Publish all changes\r\n\r\n#### Expected behavior\r\n\r\nOne of:\r\n\r\n- the children of the moved two-column element move along (only!) in _en_US_\r\n- the paste is not allowed\r\n\r\nsince the target does not exist in _de_.\r\n\r\n#### Actual behavior\r\n\r\nThe ContentCollection children of the moved element are left at their original location. This leads to missing children in the new location and orphaned (old) nodes.\r\n\r\nThis can be seen (partly) by looking at the _Test 1_ page in _de_ using the structure tree - the nested two-column element lost it's children (_column0_ and _column1_), even though the _de_ variant of the content wasn't touched at all.\r\n\r\nThe multi-column rendering of TYPO3.Neos.NodeTypes does not produce and immediate errors now, since the children to be rendered are collected using\r\n\r\n\tcolumns = TYPO3.TypoScript:Collection {\r\n\t\tcollection = ${q(node).children('[instanceof TYPO3.Neos:ContentCollection]')}\r\n\t\titemRenderer = TYPO3.Neos.NodeTypes:MultiColumnItem\r\n\t}\r\n\r\nso that simply nothing is rendered.\r\n\r\nIf one uses Fusion code like this, rendering breaks with an exception:\r\n\r\n \tcolumn0 = TYPO3.Neos:ContentCollection {\r\n\t\tnodePath = 'column0'\r\n\t}\r\n\r\nThis is because the explicitly requested node is not found.\r\n\r\n### Affected Versions\r\n\r\nNeos: seen in 2.3.13, 2.3.14 and 2.3.16\r\n"}}
{"actor":{"display_login":"kdambekalns"}}