[BUGFIX] sys_file uid should be visible in filelist 31/35731/2
authorBenjamin Mack <benni@typo3.org>
Fri, 2 Jan 2015 11:38:28 +0000 (12:38 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 2 Jan 2015 11:49:08 +0000 (12:49 +0100)
There are several cases where editors manually
link to files (<LINK file:123>Download PDF</LINK>),
f.e. in bulletlists, so they need a easy way to
find the uid of a specific file. A good place would
be the mouseover-text of files in the filelist –
like as the pages or tt_content elements have their
uid shown in the element's icon mouseover text.

Resolves: #59866
Releases: master, 6.2
Change-Id: Iec3e5043d01bfb3fac60d738ef7749fc0126c6b2
Reviewed-on: http://review.typo3.org/35731
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/filelist/Classes/FileList.php

index 958ef01..9909409 100644 (file)
@@ -591,7 +591,7 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                                $ext = $fileObject->getExtension();
                                $fileName = trim($fileObject->getName());
                                // The icon with link
-                               $theIcon = IconUtility::getSpriteIconForResource($fileObject, array('title' => $fileName));
+                               $theIcon = IconUtility::getSpriteIconForResource($fileObject, array('title' => $fileName . ' [' . (int)$fileObject->getUid() . ']'));
                                if ($this->clickMenus) {
                                        $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon, $fileObject->getCombinedIdentifier());
                                }