Commit 3f3c45e3 authored by Jigal van Hemert's avatar Jigal van Hemert Committed by Markus Klein
Browse files

[BUGFIX] Collect correct information on elements in page

In the page module information on neighboring content elements is
collected while building the page layout. This information must be
remembered for other elements on the page instead of generated new when
rendering each element. This makes sure the move buttons and edit
buttons have the correct URLs.

Resolves: #60199
Releases: 6.3, 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I9fec256b145fe8aba229d8b026fba73871942347
Reviewed-on: http://review.typo3.org/32330


Reviewed-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
parent cd486c4b
......@@ -2265,11 +2265,13 @@ class tx_cms_layout extends recordList {
* @return void
*/
protected function generateTtContentDataArray(array $rowArray) {
$this->tt_contentData = array(
'nextThree' => array(),
'next' => array(),
'prev' => array(),
);
if (empty($this->tt_contentData)) {
$this->tt_contentData = array(
'nextThree' => array(),
'next' => array(),
'prev' => array(),
);
}
foreach ($rowArray as $key => $value) {
// Create the list of the next three ids (for editing links...)
for ($i = 0; $i < $this->nextThree; $i++) {
......
Supports Markdown
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