Project

General

Profile

Actions

Bug #79571

open

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

Added by Sebastian Rieger about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Fluid
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!

Actions #1

Updated by Benni Mack about 7 years ago

  • Target version changed from 8 LTS to Candidate for patchlevel
Actions

Also available in: Atom PDF