Project

General

Profile

Actions

Bug #71094

closed

Pagetree loose active(selected) page when you edit the page proberties and click "Save & Close" button as non admin

Added by Gregor Schreier over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
Start date:
2015-10-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

This happens,

still in latest TYPO3 6.2 if you are not an admin-user.

You can reproduce it on or on your own TYPO3:
- http://cms62.demo.typo3.org/typo3/ with simple_editor (if the usergroup "Simple editors" has the "Web"-module list)

If you click on a page in the pagetree (if you in "List" or "Page"-Submodul is not important here), then when you go to edit the page-proberties and click "Save & Close" button you get lost, in the pagetree. This is really annoying if your editors work in a large pagetree.

The issue happens here:
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php
Line: 345

- $mountPoints[] = (int)$GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'];
- $mountPoints = array_unique($mountPoints);

This adds a Mountpoint to the SiteRoot (0) if there is no temporary MountPoint selected.
So i added a check, if there is any pageTree_temporaryMountPoint.

+ if(!is_null($GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'])){
+ $mountPoints[] = (int)$GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'];
+ $mountPoints = array_unique($mountPoints);
+ }
I added a Patch for 6.2.14. But the file didn't get changed since 2014…
So should work for latest TYPO3 6.2.

kind regards
Gregor


Files

pagetree.6.2.14.patch (968 Bytes) pagetree.6.2.14.patch Gregor Schreier, 2015-10-28 11:39
Actions

Also available in: Atom PDF