Project

General

Profile

Actions

Task #59112

closed

Epic #58282: Workspaces Workpackage #2

Story #58284: Bug fixes & Behaviour

IRRE sorting not reflected

Added by Oliver Hader about 10 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
Start date:
2015-09-19
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
hard
Sprint Focus:

Description

Changing the IRRE element sorting might happen during editing the parent record or directly in the list view.
However, changed sorting is updated in the database but not visualized in the view. Besides that, move-placeholder are not filtered before handing over to the FormEngine.


Files

Bildschirmfoto_2014-05-26_um_12.53.46.png (30.6 KB) Bildschirmfoto_2014-05-26_um_12.53.46.png Oliver Hader, 2014-05-26 12:55
59112.patch (759 Bytes) 59112.patch Andreas Kießling, 2014-10-16 09:58
59112_v2.patch (768 Bytes) 59112_v2.patch Andreas Kießling, 2014-10-16 14:35

Subtasks 1 (0 open1 closed)

Task #69967: Extract data overlay handling to common classClosed2015-09-19

Actions

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #62957: Sorting of files in file links can´t be saved in draft workspaceClosed2014-11-14

Actions
Related to TYPO3 Core - Task #69966: Integrate localization and fallback resolving in PlainDataResolverNew2015-09-19

Actions
Has duplicate TYPO3 Core - Bug #68663: WORKSPACES: IRRE field is lost sorting after savingClosed2015-07-31

Actions
Actions #1

Updated by Simon Apold almost 10 years ago

I can confirm this issue.

To reproduce the problem follow these steps:
  • clean TYPO3 6.2.4 installation
  • install workspace-extension
  • create a new workspace
  • in the live workspace create a new page with an image content element and add several images to it
  • switch to the new created workspace and edit the image content element
  • change the order of the images ans save the content element

Neither in the backend nor in the frontend view the changed sorting will take effect. It will show the order of the live workspace.

Actions #2

Updated by Andreas Kießling over 9 years ago

I also confirm this issue, just tested it with a fresh git checkout.
Reordering inline elements worked in 4.x. Any idea, where to start debugging?

Actions #3

Updated by Andreas Kießling over 9 years ago

I think the problem comes from the change, that the relations now always point to the uid of the live record. I don't think, that the ordering can be determined through SQL, too much overlaying is applied to the records in PHP. The order is properly saved to the DB, but if you save the parent record again, the wrong order gets saved.

The attached patch seems to fix the issue for my 1:n relations and sys_file_references.

But you also need to do the same for all frontend logic! In 4.x, it was enough to determine the right uid to use for fetching the related records, e.g.
uid, _LOCALIZED_UID or _ORIG_uid (if you don't need any l10n overlays) Now you need to do the sorting afterwards

Actions #4

Updated by Andreas Kießling over 9 years ago

Is it safe to rely on $relatedRecords['count']? Sorting should only be done, if there is more then one record, see v2

Actions #5

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.5
Actions #6

Updated by Gerrit Code Review about 9 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 http://review.typo3.org/39901

Actions #7

Updated by Alexander Opitz about 9 years ago

  • Status changed from Under Review to New
  • Assignee set to Alexander Opitz
Actions #8

Updated by Alexander Opitz about 9 years ago

  • Status changed from New to Under Review
Actions #9

Updated by Alexander Opitz about 9 years ago

  • Target version changed from 7.5 to 6.2.14
Actions #10

Updated by Alexander Opitz almost 9 years ago

  • Target version changed from 6.2.14 to 6.2.15
Actions #11

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39901

Actions #12

Updated by Gerrit Code Review almost 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39901

Actions #13

Updated by Gerrit Code Review almost 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39901

Actions #14

Updated by Gerrit Code Review almost 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39901

Actions #15

Updated by Alexander Opitz almost 9 years ago

  • Target version changed from 6.2.15 to 6.2.16
Actions #16

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42839

Actions #17

Updated by Gerrit Code Review almost 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43421

Actions #18

Updated by Oliver Hader almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #19

Updated by Oliver Hader over 8 years ago

  • Status changed from Resolved to Under Review

Setting to under review again, since only the function tests have been merged

Actions #20

Updated by Oliver Hader over 8 years ago

  • Status changed from Under Review to Resolved

Follow-up in #69967

Actions #21

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions #22

Updated by Christian Kuhn 10 months ago

  • Subtask deleted (#69966)
Actions #23

Updated by Christian Kuhn 10 months ago

  • Related to Task #69966: Integrate localization and fallback resolving in PlainDataResolver added
Actions

Also available in: Atom PDF