[BUGFIX] Change default label for sys_file_references 64/39964/8
authorBernd Wilke <t3A@pi-phi.de>
Fri, 5 Jun 2015 07:38:43 +0000 (09:38 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 19 Jun 2015 20:47:50 +0000 (22:47 +0200)
In the List module you can select additional fields to be displayed.
For fields referencing files only, the uid is shown which does give
no hint to the real referenced file.
This change selects the uid_local field, which selects the filename
from sys_file for display.

Change-Id: Ib4d8a99e66bf2507617bf43f65a0bbd511177d4b
Resolves: #67303
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/39964
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-image-but-not-included.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml

index 29a042d..2d8b80b 100644 (file)
@@ -2,7 +2,7 @@
 return array(
        'ctrl' => array(
                'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference',
-               'label' => 'uid',
+               'label' => 'uid_local',
                'formattedLabel_userFunc' => 'EXT:core/Classes/Resource/Service/UserFileInlineLabelService.php:TYPO3\\CMS\\Core\\Resource\\Service\\UserFileInlineLabelService->getInlineLabel',
                'formattedLabel_userFunc_options' => array(
                        'sys_file' => array(
index 5b24bc2..947084d 100644 (file)
@@ -67,7 +67,7 @@
                                <rec index="1" type="array">
                                        <uid>1</uid>
                                        <pid>1</pid>
-                                       <title>1</title>
+                                       <title>typo3_image2.jpg</title>
                                        <size>297</size>
                                        <relations index="rels" type="array">
                                                <element index="sys_file:1" type="array">
index c9d3f8e..47889be 100644 (file)
@@ -67,7 +67,7 @@
                                <rec index="1" type="array">
                                        <uid>1</uid>
                                        <pid>1</pid>
-                                       <title>1</title>
+                                       <title>typo3_image2.jpg</title>
                                        <size>297</size>
                                        <relations index="rels" type="array">
                                                <element index="sys_file:1" type="array">