Issue Bug Closed

#21026TCEforms suggest fails with empty label or label_alt field

Andreas Wolf 09/10/09, 14:59 updated 08/06/10, 13:28

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%”</field>

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.