Issue Task Closed

#91676Backend Search LTS-9: Not working for Slug Fields

Michael Christian 06/18/20, 18:18 updated 12/22/20, 11:07

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. :-)

Reviews 2