Actions
Bug #21026
closedTCEforms suggest fails with empty label or label_alt field
Start date:
2009-09-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When the label or label_alt field of the TCA ctrl section of a table is set, but empty, the default receiver class of TCEforms suggest creates a SELECT clause like this:
<field> LIKE "bla%" OR LIKE "bla%"
The problem arises because there is no check for empty field names, as usually the settings label and label_alt should not be defined if there is no value for them. With some extensions (e.g. tt_news), this is the case though.
The attached patch also fixes a problem with operator precedence in SQL if more than one field is queried for the query string.
(issue imported from #M11917)
Files
Actions