Issue Bug Closed

#72238After renaming a page only reload current page if it's the renamed one

Martin Gebert 12/15/15, 13:42 updated 10/02/18, 11:26

Description

A page can be renamed by double clicking it in the pagetree. Once the renaming is done, the page currently loaded in the backends main frame is reloaded, no matter if it is the renamed page or not. This reloading should only happen if the page in the main frame is the renamed page. Otherwise the reloading should be skipped, because it makes no sense and might interrupt the users actions.

Steps to reproduce:
  • click page A in the pagetree to load the page in the main frame
  • double click page B in the pagetree
  • enter a new page name for page B (page A is still loaded in the main frame)
  • (do not press enter)
  • double click page A in the page tree

*Current behaviour:*
page A will be reloaded in the main frame.

*Proposed behaviour:*
page A will not be reloaded in the main frame.

The reload is caused by this line: https://github.com/TYPO3/TYPO3.CMS/blob/539644a7dbb5f807450185bd9e474a48d793ad97/typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/actions.js#L778

Reviews 2