Skip to content
Snippets Groups Projects
Commit 9a03bcdf authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[BUGFIX] Check if '_ORIG_uid' really exists in ElementInformationController

The computed property '_ORIG_uid' is only set for workspace records,
which are NOT moved (t3ver_state=4). It is better to check directly for
the existence of this key as done in all other occurrences where it is
retrieved. The presence already ensures that we are dealing with an
overlaid workspace record and that there is need to fetch the original
uid.

Resolves: #101426
Releases: main, 12.4, 11.5
Change-Id: I7dd1072736b476015d5d44cb82f5e670fdd484a7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80168


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 792ac881
Branches
Tags
No related merge requests found
......@@ -177,7 +177,7 @@ class ElementInformationController
} else {
$this->row = BackendUtility::getRecordWSOL($this->table, $this->uid);
if ($this->row) {
if (!empty($this->row['t3ver_oid'])) {
if (isset($this->row['_ORIG_uid'])) {
// Make $this->uid the uid of the versioned record, while $this->row['uid'] is live record uid
$this->uid = (int)$this->row['_ORIG_uid'];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment