[BUGFIX] Allow search for FAL related DB records 28/27928/3
authorBenjamin Mack <benni@typo3.org>
Fri, 28 Feb 2014 08:24:22 +0000 (09:24 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 5 Mar 2014 09:02:22 +0000 (10:02 +0100)
The backend search is currently not
working for file collections etc as there
is no searchFields string provided.

The patch adds them, and also
adds it to non-visible records like
sys_file and sys_file_records as they
might be used in a different
visualization when having a filesearch
service.

The patch is easily testable if you
take a file collection and name it
"my collection". Searching in the list
module on that page for "collection"
does not show anything without
the patch.

see
https://review.typo3.org/#/c/16725/9

Releases: 6.2
Resolves: #56410
Change-Id: I0e99b3b291f085b81560e8f823d3e258a8645fc0
Reviewed-on: https://review.typo3.org/27928
Reviewed-by: Tom Ruether
Tested-by: Tom Ruether
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Configuration/TCA/sys_file.php
typo3/sysext/core/Configuration/TCA/sys_file_collection.php
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/Configuration/TCA/sys_file_storage.php

index b00cb04..8f9d49e 100644 (file)
@@ -22,6 +22,7 @@ return array(
                        'ignoreWebMountRestriction' => TRUE,
                        'ignoreRootLevelRestriction' => TRUE,
                ),
+               'searchFields' => 'name, type, mime_type, sha1'
        ),
        'interface' => array(
                'showRecordFieldList' => 'storage, name, type, mime_type, size, sha1, missing'
index 144bfbd..ee15c08 100644 (file)
@@ -27,6 +27,7 @@ return array(
                        'starttime' => 'starttime',
                        'endtime' => 'endtime'
                ),
+               'searchFields' => 'files,title'
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
index d5b5524..5a5b5af 100644 (file)
@@ -23,6 +23,7 @@ return array(
                        'ignoreWebMountRestriction' => TRUE,
                        'ignoreRootLevelRestriction' => TRUE,
                ),
+               'searchFields' => 'file,title,description,alternative'
        ),
        'interface' => array(
                'showRecordFieldList' => 'file, title, description, alternative'
index 4c148e6..d074bcf 100644 (file)
@@ -30,6 +30,7 @@ return array(
                        'ignoreWebMountRestriction' => TRUE,
                        'ignoreRootLevelRestriction' => TRUE,
                ),
+               'searchFields' => 'uid_local,uid_foreign,tablenames,fieldname,title,description'
        ),
        'interface' => array(
                'showRecordFieldList' => 'hidden,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description'
index 1048d93..092eec4 100644 (file)
@@ -16,6 +16,7 @@ return array(
                'dividers2tabs' => TRUE,
                'requestUpdate' => 'driver',
                'iconfile' => '_icon_ftp.gif',
+               'searchFields' => 'name,description'
        ),
        'interface' => array(
                'showRecordFieldList' => 'hidden,name,description,driver,processingfolder,configuration'