Bug #65073
closed
SelectViewHelper doesn't handle optionValueField and optionLabelField for array options
Added by Alexander Schnitzler almost 10 years ago.
Updated about 9 years ago.
Description
<f:form.select options="{array}" optionValueField="uid" optionLabelField="title" />
should work with the given array:
array(
array(
'uid' => 1,
'title' => 'Foo'
),
array(
'uid' => -1,
'title' => 'Bar'
),
array(
'title' => 'Baz'
),
array(
'uid' => '2'
),
)
Currently fluid tries to use the keys as values and the arrays as label which results in an error.
- Status changed from New 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 http://review.typo3.org/36909
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37376
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Also created an issue upstream at Flow-Fluid, #65424.
- Status changed from Resolved 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 http://review.typo3.org/37504
Hi,
this breaks the current behavious as stated in post-verifies on Gerrit https://review.typo3.org/#/c/36909/
Another report is for powermail: #65792
IMO this change should be done in a non-breaking way or should be reverted.
Kind regards,
Marcus
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
- Status changed from Under Review to Needs Feedback
Still something needed here? The patch is abandoned.
- Target version changed from 7.4 (Backend) to 7.5
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF