Issue Bug Closed

#78574ElementBrowser does not highlight selected file in filelist view

Joerg Boesche 11/04/16, 15:06 updated 10/02/18, 11:06

Description

If an existing filereference is edited via the Link Wizard, the selected element is not highlighted in the element browser.

In Release 7.6.9 the element was highlighted. Since release 7.6.10 no longer. The reason is that the variable “$ linkParts [ ‘url’]” is of type string, not the integer type. A value and type comparison is made for the highlighting.

Affected file:
EXT: recordlist / Classes / LinkHandler / FileLinkHandler.php: 79
EXT: recordlist / Classes / LinkHandler / FileLinkHandler.php: 222

Solution:
EXT: recordlist / Classes / LinkHandler / FileLinkHandler.php: 79 must be cast as integer.

The trigger for the error is:
https://forge.typo3.org/issues/66369

Troubleshooting:
1. Login
2. Edit existing contentElement with link to fileElement
3. ElementBrowser (LinkWizard) will open
4. File is not highlighted (This is the bug)

Reviews 2