Bug #70146
closedStory #69617: FormEngine bugs
Input placeholder record traversal is broken
100%
Description
I have a TCA field like this:
'seats' => [ 'label' => $lll . '.seats', 'config' => [ 'type' => 'input', 'size' => 4, 'placeholder' => '__row|tour|default_seats' ], ],
Which is broken since the FormEngine refactoring (b524fc86). It works on the commit before, but after the refactoring I get this:
Files
Updated by Morton Jonuschat about 9 years ago
- Status changed from New to In Progress
- Assignee set to Morton Jonuschat
Updated by Gerrit Code Review about 9 years ago
- Status changed from In Progress to Under Review
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43748
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43748
Updated by Gerrit Code Review about 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43748
Updated by Morton Jonuschat about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 13177fa0e0da2b879db03859bc9cb4f8716bfdc3.
Updated by Sebastian Michaelsen about 9 years ago
- Status changed from Resolved to New
Sorry, not solved for me. The field configuration now is:
'seats' => [ 'label' => $lll . '.seats', 'config' => [ 'type' => 'input', 'size' => 4, 'placeholder' => '__row|tour|default_seats', 'eval' => 'null', 'mode' => 'useOrOverridePlaceholder' ], ],
And I get the following exception:
http://shots.michaelsen.io/KWLU
For me it looks like the problem occurs when there is no related record configured. In my case the record has no tour
. That's why it ends up trying to load the tour with uid 0. When there's no tour associated the placeholder should be blank.
Updated by Wouter Wolters about 9 years ago
- Status changed from New to Needs Feedback
Is this resolved now?
Updated by Gerrit Code Review about 9 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44440
Updated by Morton Jonuschat about 9 years ago
- File tripshop.tar.bz tripshop.tar.bz added
Added extension for verification
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44440
Updated by Morton Jonuschat about 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset beda47e806c3a0216df957b7dc93912cb998dfb1.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed