Issue Bug Closed

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

Stefan Berger 07/05/18, 11:57 updated 04/01/20, 21:14

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.

Reviews 2