Project

General

Profile

Actions

Task #91676

closed

Backend Search LTS-9: Not working for Slug Fields

Added by Michael Christian almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-06-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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

Actions

Also available in: Atom PDF