[BUGFIX] Let FileBrowser render the readable directory path 01/58601/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 9 Oct 2018 12:46:32 +0000 (14:46 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 10 Oct 2018 19:44:17 +0000 (21:44 +0200)
The FileBrowser is changed to render the human readable path of a
directory instead of the raw identifier.

Resolves: #86603
Releases: master, 8.7
Change-Id: I437075cfdeb6adaeddd38a55ff6f4fbd5415a351
Reviewed-on: https://review.typo3.org/58601
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/recordlist/Classes/Browser/FileBrowser.php

index 823d5ee..45feb2b 100644 (file)
@@ -262,7 +262,7 @@ class FileBrowser extends AbstractElementBrowser implements ElementBrowserInterf
 
         $lines[] = '
                        <tr>
-                               <th class="col-title nowrap">' . $folderIcon . ' ' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($folder->getIdentifier(), $titleLen)) . '</th>
+                               <th class="col-title nowrap">' . $folderIcon . ' ' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($folder->getStorage()->getName() . ':' . $folder->getReadablePath(), $titleLen)) . '</th>
                                <th class="col-control nowrap"></th>
                                <th class="col-clipboard nowrap">
                                        <a href="#" class="btn btn-default" id="t3js-importSelection" title="' . htmlspecialchars($lang->getLL('importSelection')) . '">' . $this->iconFactory->getIcon('actions-document-import-t3d', Icon::SIZE_SMALL) . '</a>