Task #57168

Epic #55070: Workpackages

Epic #54851: WP: Workspaces IRRE & MM bugfixes

Story #54853: As a user I want to correctly create, modify, preview and publish IRRE & MM related workspace changes

Enable queries using "root" and "-1" for pidInList

Added by Oliver Hader over 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2014-03-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

The version preview in the frontend rendering process basically selects only the live versions and then overlays those records with possible versions.
Since the MM handling is changed to directly point to the most specific version in that regard (this is a exception to the "always live, overlay then" approach), the versions also need to be selected directly. However, the ContentObjectRenderer uses PageRepository::enableFields() which adds an additional SQL WHERE part, like " AND tablename.pid<>-1" to exclude possible versions.

Besides that, elements (like sys_catagory) that are stored on the root-level cannot be queried at all which leads to custom code in the end just to perform these queries.

This change allows selections on the root-level and disables the "pid<>-1" constraint if the opposite has been defined in the pidInList property.


Related issues

Related to TYPO3 Core - Bug #33220: Empty content object when select.pidInList=0 set in TSClosed2012-01-16

Actions
Related to TYPO3 Core - Bug #31209: CONTENT still can't select records from rootpageClosed2011-10-24

Actions

Also available in: Atom PDF