Issue Bug Closed

#21926t3lib_befunc::getFlexFormDS fails because of wrong inquiries

David Bruchmann 01/08/10, 11:17 updated 09/10/13, 09:08

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)

Reviews 0

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