Project

General

Profile

Actions

Bug #23855

closed

getRecordOverlay fetches "Versioning Preview Overlay" but does not return the fields _ORIG_uid and _ORIG_pid

Added by Andreas Kießling about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-10-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When a page is rendered, the class t3lib_pageSelect usually does the language overlay with "getRecordOverlay". Here, "versionOL" is called and up to now everything is still fine and will be if you do not use workspaces or only have default language. If you need the the real uid of the record in the workspace (e.g. to fetch attached IRRE records), that value should be available in the field "_ORIG_uid", which is set by "versionOL", but "getRecordOverlay" does not add these fields when it iterates over the record and does the overlaying.

How to test:
- just output the cObj data in your favourite frontend plugin and watch the fields uid, _LOCALIZED_UID, _ORIG_uid and _ORIG_pid
$content = t3lib_div::view_array($this->cObj->data);

- create a content element in default language in LIVE workspace
- translate that record in in a workspace and have a look at the uid of the record in the workspace
- watch the output of your frontend plugin and the missing fields

If the default element is also versioned, the right _ORIG_uid is already set, but not if only the localized content element new in the workspace.

Solution: add _ORIG_uid and _ORIG_pid when the overlay record is merged

(issue imported from #M16147)


Files

16147_v1.patch (622 Bytes) 16147_v1.patch Administrator Admin, 2010-10-27 19:10
16147_v2.diff (697 Bytes) 16147_v2.diff Administrator Admin, 2010-11-17 20:53
Actions #1

Updated by Francois Suter about 14 years ago

Committed v2 to 4-4 (rev 9468) and trunk (rev 9470).

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF