[TASK] Return to content element after un-/hide 55/52055/2
authorJosef Glatz <josefglatz@gmail.com>
Wed, 15 Mar 2017 12:26:46 +0000 (13:26 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 15 Mar 2017 13:27:23 +0000 (14:27 +0100)
Add the current content element as section to the un-/hide link.

Releases: master, 7.6
Resolves: #80274
Change-Id: I0d6ec4ea8274f82f6d4c66a4e9e77860819d4d15
Reviewed-on: https://review.typo3.org/52055
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 4b3f74d..4ca4745 100644 (file)
@@ -1437,7 +1437,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                     $params = '&data[tt_content][' . ($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid'])
                         . '][' . $hiddenField . ']=' . $value;
                     $out .= '<a class="btn btn-default" href="' . htmlspecialchars(BackendUtility::getLinkToDataHandlerAction($params))
-                        . '" title="' . $this->getLanguageService()->getLL($label, true) . '">'
+                        . '#element-tt_content-' . $row['uid'] . '" title="' . $this->getLanguageService()->getLL($label, true) . '">'
                         . $this->iconFactory->getIcon('actions-edit-' . strtolower($label), Icon::SIZE_SMALL)->render() . '</a>';
                 }
                 // Delete