Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting does not work when child item is moved to first position in container #522

Closed
flixflax opened this issue Aug 13, 2024 · 2 comments
Closed

Comments

@flixflax
Copy link

Hi,

I noticed that there seems to be an issue with sorting when one moves a content element positioned in a container-element to the very first position of this container element.

Following environment is used:

  • TYPO3 11.5.38
  • ext:container v2.3.6

I positioned multiple text-elements in one container element. Everything worked well. Then I tried to move the very last text-element to the very first position. It seemed to work, but after reloading the page in backend, the moving was undone.

Then I debugged the code and found that in this scenario the UID of the container is used to fetch the sorting-number. When the text-element is moved to the second position, the UID of the preceding text-element is used to fetch the sorting-number.

I had to downgrade to v1.6.1 to get rid of this issue, as it exists in all versions of v2.

@achimfritz
Copy link
Contributor

Hi @flixflax , did you run the container sorting fix commands?

./vendor/bin/typo3cms container:sorting --apply
and ./vendor/bin/typo3cms container:sorting-in-page --apply

(https://github.com/b13/container/releases/tag/2.0.0)

did you upgrade to 2.x?

@flixflax
Copy link
Author

flixflax commented Aug 15, 2024

Hi @achimfritz,

thank you for pointing out, that the commands have to be executed even if one does not upgrade but use v2 directly. I was able to test this in my development environment and it seems to fix my issue. 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants