Issue Bug Closed

#77749Link Wizard does not work after creating a folder

Robert Vock 09/01/16, 15:07 updated 02/10/20, 09:14

Description

The link wizard beside an input field opens a popup which gets a fieldChangeFunc parameter to change a field via javascript. This parameter can get lost when certain actions are performed within the popup. When the parameter is lost, selecting anything in the popup will not change the field in the opener document.

Steps to reproduce:
1. Open the Link Browser using the wizard link
!link-wizard.png!
2. Go to folder tab
3. Create a new folder
4. Try to click on anything to generate a link

This bug affects the linkhandler extension which shows a list-view in the popup.

The source for this bug is within LinkBrowserController:
https://github.com/TYPO3/TYPO3.CMS/blob/d4ef7b/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php#L68

During initDocumentTemplate the fieldChangeFunc-array will be changed without adjusting the fieldChangeFuncHash. When a link uses the fieldChangeFunc-parameter, it will get invalidated because of the incorrect hash.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.