[BUGFIX] Change the label userfunc for FAL records 83/21983/2
authorPatrick Schriner <patrick.schriner@diemedialen.de>
Fri, 5 Jul 2013 18:18:40 +0000 (20:18 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Sat, 6 Jul 2013 08:27:11 +0000 (10:27 +0200)
The new label_userFunc for sys_file_reference rows results in
"no title" when called by BackendUtility::getRecordTitle. This function
is e.g. called from the workspaces module.

This patch will set the title parameter to the row uid when the
parmeter array does not provide an 'options' 'sys_file' array. This
will result in the uid being displayed which is the old behavior.

Resolves: #49718
Related: #36052
Releases: 6.2
Change-Id: Ib340ca82f5b10faa00815a074545664c2fa67954
Reviewed-on: https://review.typo3.org/21983
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/Service/UserFileInlineLabelService.php

index 3b8d3a3..1eaa879 100644 (file)
@@ -48,6 +48,7 @@ class UserFileInlineLabelService {
 
                if (!count($sysFileFields)) {
                        // Nothing to do
+                       $params['title'] = $params['row']['uid'];
                        return;
                }