Project

General

Profile

Actions

Bug #21259

closed

Forms using dataArray do not show any field

Added by Carlos Chiari over 14 years ago. Updated over 5 years ago.

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

0%

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

Description

When a FORM is set using Typoscript, if it uses the 'dataArray' property, the form will lack its fields. It doesn't happen the property 'data' is used instead.

The same typoscript shows the fields in typo3 4.1.10.

Debugging the output it appears that the function 'sortedKeyList', at class.t3lib_tstemplate.php, returns the keys with a final dot at version 4.3.0 beta1, while at version 4.1.10 it didn't.

As a result, the 'FORM' function at class.tslib_content.php, at the line that says:
...
foreach ($sKeyArray as $theKey) {
$dAA = $conf['dataArray.'][$theKey.'.']; <------- HERE
...
will try to look for the wrong key, example: '100..', with two (2) points instead of one!!!

When the function sortedKeyList', at class.t3lib_tstemplate.php, from version 4.3.0 whas rewritten with the old one, the FORM started showing the fields.
(issue imported from #M12217)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #20077: FORM is emptyClosedOliver Hader2009-02-22

Actions
Is duplicate of TYPO3 Core - Bug #21208: TypoScript FORM object does not render correctly anymoreClosedKasper Skårhøj2009-10-08

Actions
Actions

Also available in: Atom PDF