Bug #43893
closedselected = 1 doesn't work in class.tslib_content_form.php
100%
Description
When I change
$selected = isset($singleKeyArray['selected.'])
? $this->cObj->stdWrap($singleKeyArray['selected'], $singleKeyArray['selected.'])
: $singleKeyArray['selected'];
in Line 107 to
$selected = isset($singleKey_valueArray['selected.'])
? $this->cObj->stdWrap($singleKey_valueArray['selected'], $singleKey_valueArray['selected.'])
: $singleKey_valueArray['selected'];
then everything is okay.
Updated by Peter Schuster over 11 years ago
I can confirm this. The same problem exists in TYPO3 v4.7.
The suggested fix works for me, too.
Updated by Tobias Liebig over 11 years ago
Could you provide a more detailed description how to test/reproduce this?
I guess it also occurs in 6.0, even if the code looks completely different there
Updated by Tobias Liebig over 11 years ago
Test TypoScript:
page = PAGE temp.mailform = FORM temp.mailform { dataArray { 20.label = Foobar 20.type = test=select 20.valueArray { 10.label = Blue 10.value = 1 20.label = Red 20.value = 2 20.selected = 1 } } recipient = info@example.com layout = <div class="some-class">###LABEL### ###FIELD###</div> } page.10 < temp.mailform
Updated by Tobias Liebig over 11 years ago
- Complexity set to easy
I can confirm this still happens in 6.0, although the TYPO3\CMS\Frontend\ContentObject\FormContentObject seems not to be used at all if the new EXT:form is installed.
However, the suggested fix makes sense and is pretty easy to implement.
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20282
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20282
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22751
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/22752
Updated by Wouter Wolters about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset db1c38be254db0972788f64c8082cdb8c212787a.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed