You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi have a page with a lot of content elements, some inside containers and some outside containers. And I have found the following bug:
When I want to sort an element after a container, or create a new content element after the container, the calculated new sorting value, is based on the sorting of the inner content element instead of the container.
where you handle containers with content differently than empty containers.
See this example. We want to move "Content Element 2" after the container. In the mentioned code, the check if (empty($childRecords)) would fail, because there are children. This would cause, the last child will be returned and used for sorting. And this would be cause that the new sorting value would be calculated based on 256 instead of 4608. And this would cause, the element would not be placed after the container but somewhere else.
+ Content Element 1, sorting 4096
+ Content Element 2, sorting 4352
+ Container, sorting 4608
+ Content Element 3, sorting 256
+ .... here I want to place the content element ....
See also this short video clip where I show the problem: Link to MP4 video
The text was updated successfully, but these errors were encountered:
Hi have a page with a lot of content elements, some inside containers and some outside containers. And I have found the following bug:
When I want to sort an element after a container, or create a new content element after the container, the calculated new sorting value, is based on the sorting of the inner content element instead of the container.
The problem seems to be this code
container/Classes/Domain/Service/ContainerService.php
Line 60 in 849dc57
See this example. We want to move "Content Element 2" after the container. In the mentioned code, the check
if (empty($childRecords))
would fail, because there are children. This would cause, the last child will be returned and used for sorting. And this would be cause that the new sorting value would be calculated based on 256 instead of 4608. And this would cause, the element would not be placed after the container but somewhere else.See also this short video clip where I show the problem: Link to MP4 video
The text was updated successfully, but these errors were encountered: