Actions
Bug #79571
openForm.Select do not work with ObjectStorage if the multiple attribute is false
Start date:
2017-01-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
I have a model class with a attribute like "selectedCompany" which is a objectstorage.
If i write a for with a select like:
<f:form.select multiple="multiple" property="selectedCompany" options="{companies}" sortByOptionLabel="true" prependOptionLabel="-- Bitte auswählen --" optionLabelField="name" additionalAttributes="{required: 'true'}"/>
all works fine. I can select a single company or more. But some useres should only can select a single one like:
<f:form.select property="selectedCompany" options="{companies}" sortByOptionLabel="true" prependOptionLabel="-- Bitte auswählen --" optionLabelField="name" additionalAttributes="{required: 'true'}"/>
the selected company is not saved because the rendered select tag is not a array!
Updated by Benni Mack over 7 years ago
- Target version changed from 8 LTS to Candidate for patchlevel
Actions