Skip to content
Snippets Groups Projects
Commit 82555e4f authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Oliver Bartsch
Browse files

[BUGFIX] TypeError in MoveElementController when using sqlite

The value fetched from database when using sqlite is of type string.
The property page_id is typed to be integer.
Assigning the string to integer would result in an TypeError.

Resolves: #95078
Releases: master
Change-Id: I2e961f3e3c71198c29b1ef6c288881dd28c7702b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70864


Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent affe1cf8
Branches
Tags
No related merge requests found
...@@ -111,7 +111,7 @@ class MoveElementController ...@@ -111,7 +111,7 @@ class MoveElementController
$assigns['makeCopyUrl'] = GeneralUtility::linkThisScript(['makeCopy' => !$this->makeCopy]); $assigns['makeCopyUrl'] = GeneralUtility::linkThisScript(['makeCopy' => !$this->makeCopy]);
// Get page record (if accessible): // Get page record (if accessible):
if ($this->table !== 'pages' && $this->moveUid === $this->page_id) { if ($this->table !== 'pages' && $this->moveUid === $this->page_id) {
$this->page_id = $elRow['pid']; $this->page_id = (int)$elRow['pid'];
} }
$pageInfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause); $pageInfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause);
$assigns['pageInfo'] = $pageInfo; $assigns['pageInfo'] = $pageInfo;
......
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