Bug #71973
closedSorting of file relations doesn't have any effect in a workspace
100%
Description
Sorting file references, e.g. in a "file links" element, doesn't have any effect in a workspace. After saving, the sorting is just as it was before:
Files
Updated by Lorenz Ulrich about 9 years ago
I updated to 6.2.17 to see if #69967 solved the problem. It solved a part of the problem: Sorting files now works in the backend. But in the Workspace preview, the "to-be-published sorting" is not applied.
Updated by Oliver Hader about 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to Oliver Hader
How are the relations retrieved in the frontend preview (TypoScript FILES, levelmedia, etc.). It would be great if you could paste the accordant snipped here.
It seems, that the relations are stored correctly but fetching in the frontend scope (still) has problems.
Thanks in advance for your feedback!
Updated by Lorenz Ulrich almost 9 years ago
Thanks for your feedback, Oliver.
The files are normal content elements of type Filelinks so AFAIK it's TypoScript FILES / FilesContentObject.
Updated by Viktor Livakivskyi over 8 years ago
I confirm the same issue in TYPO3 7.6
Order of file relations is ok in BE, but isn't applied at FE.
Using css_styled_cointent, tried with "File links" and "Images" CEs.
Interesting part is, that sorting is wrong only in case, when editing already published (LIVE) CE record. If it is a new one (created within a Workspace), all the changed are visible in FE as well.
Updated by Alexander Opitz over 8 years ago
IMHO this sorting issue was resolved in recent TYPO3 updates.
Can you please check again?
Updated by Thorsten Kahler about 8 years ago
Alexander Opitz wrote:
IMHO this sorting issue was resolved in recent TYPO3 updates.
No, that issue still exists.
Updated by Alexander Opitz almost 8 years ago
- Status changed from Needs Feedback to New
Updated by Alexander Jahn over 7 years ago
- File 71973.patch 71973.patch added
I found the same issue today.
The problem is caused by FileRepository::findByRelation selecting file_references and then doing a workspace overlay. The overlay changes the reference's sorting field.
The solution might be to reapply the ordering on all selected items.
I have attached a patch that should solve the issue.
Edit: my patch is against TYPO3 8.7.4
Updated by bitfire it services over 5 years ago
Maybe this is the same as #54884?
Updated by Benni Mack over 5 years ago
- Related to Bug #54884: RootlineUtility does not consider foreign_sorting for relation fields added
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61714
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61714
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61714
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61732
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61733
Updated by Benni Mack over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9737be79492fd2e2a2b71326c65a736fb209d933.