Using
- Typo 3 (version 7.6.18)
- Apache 2.4.23
- OpenSSL/1.0.2h
- PHP/7.0.10
- MySQL 5.7.14
- Windows 7
There appears to be a problem when rendering more than 20 items in a f:alias map when using the translate tag. The code is not converted to the expected markup and the f:alias code is shown on the page instead.
formfields.html
mark-up
<f:alias map="{exampleOptions:{
0: {key: '', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.please_choose\' />'},
1: {key: '1', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionone\' />'},
2: {key: '2', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optiontwo\' />'},
3: {key: '3', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionthree\' />'},
4: {key: '4', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionfour\' />'},
5: {key: '5', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionfive\' />'},
6: {key: '6', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionsix\' />'},
7: {key: '7', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionseven\'/>'},
8: {key: '8', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optioneight\' />'},
9: {key: '9', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionnine\' />'},
10: {key: '10', value:'<f:translate key=\'tx_exampleextension_domain_model_complaintform.rel_optionten\' />'}
}}">
<f:form.select
class="form-control"
property="example" options="{exampleOptions}"
optionValueField="key"
optionLabelField="value"
/>
If there are more options added the map they are ignored and the page rendering stops.
The form partially renders but the alias mark-up is inserted as HTML
instead of the transformed OPTION
tag.
If the extra items are removed the page renders as it should.
It seems a very small amount of options for this to be happening, we have seen it on various machines, so it is not just related to one PC