Actions
Bug #82457
closedOptionViewHelper ignores empty value
Start date:
2017-09-11
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
Description
The following code does not produce two selects with the same options:
<f:form.select name="select1" options="{options}" />
<f:form.select name="select2">
<f:for each="{options}" key="key" as="value">
<f:form.select.option value="{key}">{value}</f:form.select.option>
</f:for>
</f:form.select>
$options = ['' => 'empty', 'foo' => 'bar'];
$this->view->assign($options);
The resulting HTML:
<select name="select1">
<option value="">empty</option>
<option value="foo">bar</option>
</select>
<select name="select2">
<option>empty</option>
<option value="foo">bar</option>
</select>
Note that the submitted value differs if the first option is selected.
Updated by Gerrit Code Review about 7 years ago
- 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 https://review.typo3.org/54122
Updated by Raphael Graf about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d2ef61270dc20ce65dd872902ec0c390c3c528eb.
Actions