Project

General

Profile

Actions

Bug #21026

closed

TCEforms suggest fails with empty label or label_alt field

Added by Andreas Wolf about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

0011917_v1.diff (817 Bytes) 0011917_v1.diff Administrator Admin, 2009-09-10 15:01
0011917_v2.diff (1.44 KB) 0011917_v2.diff Administrator Admin, 2009-09-12 11:07

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #17874: Add suggest-like feature to TCEformsClosedRupert Germann2007-12-02

Actions
Actions

Also available in: Atom PDF