Project

General

Profile

Actions

Bug #17652

closed

preprocessing ###REC_FIELD_[fieldname]### marker problem with IRRE

Added by Aldo Polli over 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-10-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,
this is the situation:
I have a relation 1:n between 2 tables;
I use IRRE for inline editing of the child records;
in the child table I have a field of type 'select' that implements another relation with another big table;
when I edit the child records I want to filter the items of this field,
so I use the ###REC_FIELD_[fieldname]### marker

when I create a new child record with IRRE,
the preprocessing of the ###REC_FIELD_[fieldname]### marker returns an empty string
if the filed is numeric I got an sql error an the child record doesn't render in the form

TCA example:

"childField" => Array (
"config" => Array (
"type" => "select",
"foreign_table" => "anotherTable",
"foreign_table_where" => " AND anotherTable.anotherField=###REC_FIELD_filterField### ORDER BY anotherTable.uid",

SQL result:

AND anotherTable.anotherField= ORDER BY anotherTable.uid

I propose a patch to return 0 in case of a numeric field

Ciao,
Aldo Polli

(issue imported from #M6455)


Files

class.t3lib_befunc.php.diff (339 KB) class.t3lib_befunc.php.diff Administrator Admin, 2007-10-04 20:02
class.t3lib_befunc.php.diff_01 (269 Bytes) class.t3lib_befunc.php.diff_01 Administrator Admin, 2007-11-16 11:29
class.t3lib_befunc.php.diff_011 (212 Bytes) class.t3lib_befunc.php.diff_011 Administrator Admin, 2007-11-16 12:10
Actions

Also available in: Atom PDF