[TYPO3-core] RFC #11917: TCEforms suggest fails with empty label or label_alt field

Andreas Wolf typo3ml at andreaswolf.info
Thu Sep 10 15:38:35 CEST 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:

http://bugs.typo3.org/view.php?id=11917


Branches:

trunk


Problem:

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.


Solution:

Check for empty field names.

The attached patch also fixes a problem with operator precedence in SQL
if more than one field is queried for the query string.


Regards
Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0011917_v1.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090910/497d7d98/attachment.txt 


More information about the TYPO3-team-core mailing list