Task #91676

Backend Search LTS-9: Not working for Slug Fields

Added by Michael Christian 27 days ago. Updated 19 days ago.

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

0%

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

History

#1 Updated by Oliver Hader 26 days ago

  • Category set to Backend User Interface

#2 Updated by Oliver Hader 26 days ago

  • Tracker changed from Bug to Task

#3 Updated by Gerrit Code Review 21 days 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

#4 Updated by Gerrit Code Review 19 days 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

Also available in: Atom PDF