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 #1

Updated by Gregor Schreier over 8 years ago

How to make progress here?

Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #5

Updated by Gerrit Code Review about 8 years ago

Patch set 4 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #6

Updated by Gerrit Code Review about 8 years ago

Patch set 5 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #7

Updated by Gerrit Code Review about 8 years ago

Patch set 6 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46133

Actions #8

Updated by Gerrit Code Review about 8 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47028

Actions #9

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47028

Actions #10

Updated by Gerrit Code Review about 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47028

Actions #11

Updated by Gianluigi Martino about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF