Bug #79571

Form.Select do not work with ObjectStorage if the multiple attribute is false

Added by Sebastian Rieger over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Fluid
Start date:
2017-01-31
Due date:
% Done:

0%

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!

History

#1 Updated by Benni Mack over 2 years ago

  • Target version changed from 8 LTS to Candidate for patchlevel

Also available in: Atom PDF