[BUGFIX] Use `file.identifier` in search result of filelist 77/55677/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 11 Feb 2018 18:49:08 +0000 (19:49 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 12 Feb 2018 12:32:27 +0000 (13:32 +0100)
The search results of the filelist access the property
`file.combinedIdentifier`. The property is not available anymore, so this
patch uses `file.identifier`, which maps to `FileFacade::identifier()`
and returns a handcrafted combined identifier.

Resolves: #83849
Releases: master, 8.7
Change-Id: I98bcd9e40c9fdebddf1079ad0240a1d3f6ac8d6e
Reviewed-on: https://review.typo3.org/55677
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/filelist/Resources/Private/Templates/FileList/Search.html

index 5a7f125..5e1e710 100644 (file)
@@ -31,7 +31,7 @@
                                <f:for each="{files}" as="file">
                                        <tr data-uid="0" data-l10nparent="0">
                                                <td class="col-icon nowrap">
-                                                       <fl:link.clickMenuOnIcon table="{file.combinedIdentifier}">
+                                                       <fl:link.clickMenuOnIcon table="{file.identifier}">
                                                                {file.icon->f:format.raw()}
                                                        </fl:link.clickMenuOnIcon>
                                                </td>
                                                                        <f:then>
                                                                                <a href="#" class="btn btn-default filelist-file-info"
                                                                                        title="{f:translate( key:'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:cm.info' )}"
-                                                                                       data-identifier="{file.combinedIdentifier}"
+                                                                                       data-identifier="{file.identifier}"
                                                                                >
                                                                                        <core:icon identifier="actions-document-info" />
                                                                                </a>
                                                <td class="nowrap">
                                                        <f:if condition="{file.referenceCount} > 0">
                                                                <f:then>
-                                                                       <a href="#" class="filelist-file-references" data-identifier="{file.combinedIdentifier}" title="{f:translate( key:'LLL:EXT:backend/Resources/Private/Language/locallang.xlf:show_references' )} ({file.referenceCount})">{file.referenceCount}</a>
+                                                                       <a href="#" class="filelist-file-references" data-identifier="{file.identifier}" title="{f:translate( key:'LLL:EXT:backend/Resources/Private/Language/locallang.xlf:show_references' )} ({file.referenceCount})">{file.referenceCount}</a>
                                                                </f:then>
                                                                <f:else>
                                                                        -