Task #91676
closedBackend Search LTS-9: Not working for Slug Fields
100%
Description
Action: Submit a backend-search with a search term which is only in the slug field (TCA: searchFields => 'slug' is set!)
Result: no Result! Slug Content not found
Reason: Missing $fieldType === 'slug' in typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
=> function makeSearchString()
Fix:
if ($fieldType === 'text'
|| $fieldType === 'flex'
|| $fieldType === 'slug' // NEW LINE
|| $fieldType === 'input' && (!$evalRules || !preg_match('/\b(?:date|time|int)\b/', $evalRules))
) {
Could someone fix this please!
Thank you. :-)
Updated by Oliver Hader over 4 years ago
- Tracker changed from Bug to Task
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Configuration/TCA/pages.php#L65
slug
has to be added to searchFields
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64936
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64936
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64936
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65300
Updated by Markus Hölzle over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 74e43a0532f65fdbeac791708a76840145d3df2a.