Important: #79571 - Select fields bound to a collection submit a list 

See forge#79571

Description 

A <f:form.select> without multiple that is bound with property to a property whose current value is an array or an \TYPO3\CMS\Extbase\Persistence\ObjectStorage now appends [] to its name attribute, as <f:form.checkbox> already does for such a value.

Before, the field submitted a single uid. Extbase mapped it to an empty ObjectStorage , so the selection was lost and persisting the object removed all relations it had. Now the selected value is submitted as a list with one entry and mapped into the collection.

The value is read from the form object when the field is rendered. A select in a form without an object, or bound to a property that is null , still renders a single name. Initialize such a property with an empty ObjectStorage , as Extbase models usually do in their constructor.

Selects bound to any other value and selects with multiple render as before. Code that addresses a select bound to a collection by its exact name attribute, for example in JavaScript, has to add the [] .