Bug #85486

cObj->searchWhere is broken using more than one search field

Added by Stefan Berger about 1 year ago. Updated 12 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2018-07-05
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

the OR-parts of the searchfields in the method cObj->searchWhere has to be grouped in parentheses like in TYPO3 7. Otherwise the complete search condition using the method could be misinterpreted.

Wrong result:

AND (tt_content.header LIKE '%sdf%') 
OR  (tt_content.subheader LIKE '%sdf%') 

Right result:
AND ((tt_content.header  LIKE '%sdf%') 
OR   (tt_content.subheader LIKE '%sdf%'))

Thanks for fixing.

History

#1 Updated by Susanne Moog 12 months ago

  • Target version changed from 8.7.19 to Candidate for patchlevel

Also available in: Atom PDF