Feature #29399
closed
SelectViewHelper - should be able to display more than one option with same value
Added by Daniel Gercke about 13 years ago.
Updated about 6 years ago.
Sprint Focus:
On Location Sprint
Description
function getOptions() in SelectViewHelper.php gets options by putting them to an array.
$options[$key] = $value;
This is later on used this way
pseudocode:
<option value="$key">$value</option>
This behavior makes it impossible to use the same key multiple times for different values.
- Status changed from New to Needs Feedback
Hi Daniel,
could you provide a fluid template / snippet for this issue?
<f:form method="post" controller="inRange" action="resultList" object="{demand}">
<f:form.select name="city" options="{demand.location} optionValueField="inRange" optionLabelField="cityName" />
</f:form>
inRange is boolean.
- Project changed from 534 to 2559
- Category changed from 963 to Fluid: ViewHelpers
- Tracker changed from Bug to Feature
- Project changed from 2559 to TYPO3 Core
- Category changed from Fluid: ViewHelpers to Fluid
- Status changed from Needs Feedback to New
Just a tiny update from the side lines: this issue has been reviewed, judging if it has any impact on or is affected by the merging of the standalone Fluid package as TYPO3 dependency.
Verdict: NOT AFFECTED, NOT SOLVED. This still can be implemented by changing the options resolving as described by OP.
- Status changed from New to Under Review
- Sprint Focus set to On Location Sprint
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF