Project

General

Profile

Actions

Bug #21259

closed

Forms using dataArray do not show any field

Added by Carlos Chiari about 15 years ago. Updated about 6 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 #1

Updated by Oliver Hader about 15 years ago

Hi Carlos,
can you please provide a simple TypoScript example how to reproduce and test this? Thanks in advance!

Actions #2

Updated by Carlos Chiari about 15 years ago

Hi Oliver:

Sorry, but it seems I made a mistake. :(

The site that was giving this erros was using typo3 version 4.3 alpha1. Moving it to 4.3 beta 1 solved the issue.

Sorry for the inconvinience and the time given to this matter :(

Regards,

Carlos

Actions #3

Updated by Oliver Hader about 15 years ago

Thanks for the feedback. Thus, I can close this issue.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF