Project

General

Profile

Actions

Bug #21926

closed

t3lib_befunc::getFlexFormDS fails because of wrong inquiries

Added by David Bruchmann almost 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-01-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The incoming parameter $conf[ds] always has a syntax like
$conf[ds][ MODUL,TYPE] = VALUE;
Example:
$conf[ds][tt_address_pi1,list] = 'FILE:EXT:tt_address/pi1/flexform.xml';
The array $conf[ds] is mapped to $ds_array.

The incoming parameter $conf['ds_pointerField'] always has the syntax
$conf['ds_pointerField'] = 'FIELD1,FIELD2';

This Value is exploded in $pointerFields for WRONG usage:

1: if(count($pointerFields) == 2) {
2: if($ds_array[$row[$pointerFields0].','.$row[$pointerFields1]]) {
3: $srcPointer = $row[$pointerFields0].','.$row[$pointerFields1];
4: }

Whats Wrong?
the inquiry in line 2 always fails because the assumed syntax is wrong. The right syntax for a key in $conf[ds] is 'MODUL,TYPE' but the inquiry expects 'FIELD1,FIELD2'. Following Inquiries are wrong too.
So most Modules get the value "default" for $srcPointer which may work in most cases but not always.

(issue imported from #M13176)


Files

bug_13176_v1.diff (6.65 KB) bug_13176_v1.diff Administrator Admin, 2010-01-08 23:47
Actions

Also available in: Atom PDF