Skip to content

Commit

Permalink
[BUGFIX] Use correct variable to select a subfolder within folder sel…
Browse files Browse the repository at this point in the history
…ector

Use correct variable to select a subfolder within the folder selector
instead of using the variable for parent-folder identifier.

Resolves: #87415
Releases: master, 9.5
Change-Id: I8bb30f81aea2b17f0b3567b9272e239b2beaf772
Reviewed-on: https://review.typo3.org/59420
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Tested-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
ikonplant authored and georgringer committed Jan 15, 2019
1 parent 91dfd3d commit 2761d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php
Expand Up @@ -163,8 +163,8 @@ protected function renderFolders(Folder $parentFolder)
$icon = '<span style="width: 16px; height: 16px; display: inline-block;"></span>';
$icon .= '<span title="' . htmlspecialchars($subFolder->getName()) . '">' . $this->iconFactory->getIcon('apps-filetree-folder-default', Icon::SIZE_SMALL) . '</span>';
// Create links for adding the folder:
$aTag = '<a href="#" data-folder-id="' . htmlspecialchars($folderIdentifier) . '" data-close="0">';
$aTag_alt = '<a href="#" data-folder-id="' . htmlspecialchars($folderIdentifier) . '" data-close="1">';
$aTag = '<a href="#" data-folder-id="' . htmlspecialchars($subFolderIdentifier) . '" data-close="0">';
$aTag_alt = '<a href="#" data-folder-id="' . htmlspecialchars($subFolderIdentifier) . '" data-close="1">';
if (strstr($subFolderIdentifier, ',') || strstr($subFolderIdentifier, '|')) {
// In case an invalid character is in the filepath, display error message:
$errorMessage = sprintf(htmlspecialchars($lang->getLL('invalidChar')), ', |');
Expand Down

0 comments on commit 2761d91

Please sign in to comment.