Commit f9f54aec authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Anja Leichsenring
Browse files

[BUGFIX] Fix wrong indentation of PageTree in MoveElements

Resolves: #78687
Releases: master, 7.6
Change-Id: Ibe5efa5b81e839f7bc608ca4adffe1aa2d2a9727
Reviewed-on: https://review.typo3.org/50648

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarGianluigi Martino <gmartino27@gmail.com>
Tested-by: default avatarGianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 5b0f67c4
......@@ -190,6 +190,9 @@ class PagePositionMap
}
// Then set the current prevPid
$prevPid = -$prev_dat['row']['pid'];
if ($prevPid !== $dat['row']['pid']) {
$lines[] = '</ul>';
}
} else {
// In on the same level
$prevPid = -$prev_dat['row']['uid'];
......@@ -200,9 +203,6 @@ class PagePositionMap
}
// print arrow on the same level
if (!$this->dontPrintPageInsertIcons && $this->checkNewPageInPid($dat['row']['pid'])) {
if (!empty($prev_dat) && $prev_dat['invertedDepth'] < $dat['invertedDepth']) {
$lines[] = '</ul>';
}
$lines[] = '<span class="text-nowrap"><a href="#" onclick="' . htmlspecialchars($this->onClickEvent($prevPid, $dat['row']['pid'], 3)) . '"><i class="t3-icon fa fa-long-arrow-left" title="' . $this->insertlabel() . '"></i></a></span>';
}
// The line with the icon and title:
......
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