Task #91676

Backend Search LTS-9: Not working for Slug Fields

Added by Michael Christian 4 months ago. Updated 2 months ago.

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

100%

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

Associated revisions

Revision 74e43a05 (diff)
Added by Markus Hölzle 2 months ago

[BUGFIX] Backend search in field "slug"

Backend search function lookup in field "slug" for "pages" table.
To enable this, the file type "slug" has to be added in general
to the search functions.

Resolves: #91676
Releases: master, 10.4
Change-Id: Ied3153801c15830ed659bbe44b085d76daed48c3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64936
Tested-by: Christian Kuhn <>
Tested-by: TYPO3com <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Christian Kuhn <>
Reviewed-by: Anja Leichsenring <>

Revision 23394bc0 (diff)
Added by Markus Hölzle 2 months ago

[BUGFIX] Backend search in field "slug"

Backend search function lookup in field "slug" for "pages" table.
To enable this, the file type "slug" has to be added in general
to the search functions.

Resolves: #91676
Releases: master, 10.4
Change-Id: Ied3153801c15830ed659bbe44b085d76daed48c3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65300
Tested-by: TYPO3com <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Anja Leichsenring <>

History

#1 Updated by Oliver Hader 4 months ago

  • Category set to Backend User Interface

#2 Updated by Oliver Hader 4 months ago

  • Tracker changed from Bug to Task

#3 Updated by Gerrit Code Review 4 months 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 4 months 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

#5 Updated by Gerrit Code Review 2 months 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

#6 Updated by Gerrit Code Review 2 months 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

#7 Updated by Markus Hölzle 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF