[TYPO3-core] RFC #11917: TCEforms suggest fails with empty label or label_alt field
Rupert Germann
rupi at gmx.li
Sat Sep 19 16:14:55 CEST 2009
FYI: committed to trunk rev 5987
greets
rupert
Andreas Wolf schrieb:
> 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
>
More information about the TYPO3-team-core
mailing list