Bug #3635

Fluid: SelectViewHelper always appends the select-field's name with []

Added by Marcel Rosenberger about 6 years ago. Updated almost 5 years ago.

Status:Closed Start date:2009-06-09
Priority:Must have Due date:
Assigned To:Bastian Waidelich % Done:

0%

Category:-
Target version:- Estimated time:0.00 hour
Has patch: Affected Flow version:

Description

The name for a select-field will always be appended by [] whether the field is multiple or not.

<f:form.select name="mySelectField" options="{0: 'no', 1: 'yes'}" value="0" />

will result to

<select name="mySelectField[]">
    <option value="0" selected="selected">no</option>
    <option value="1">yes</option>
</select>

Note: mySelectField[] instead of mySelectField

The included file is a suggestion to fix the bug.

ViewHelperArguments.php.patch Magnifier - location: typo3\sysext\fluid\Classes\ViewHelpers\Form\SelectViewHelper.php (674 Bytes) Marcel Rosenberger, 2009-06-09 19:14

History

#1 Updated by Bastian Waidelich about 6 years ago

  • Status changed from New to Closed

I can't reproduce this..
I use the exact input of your example and get

<select name="mySelectField">
<option value="0" selected="selected">no</option>
<option value="1">yes</option>
</select>

Please re-open ticket if this still occures with the current version (trunk).

#2 Updated by Marcel Rosenberger about 6 years ago

I can confirm that this is now fixed in the current trunk version.

#3 Updated by Bastian Waidelich almost 6 years ago

  • Project changed from Extbase MVC Framework to TYPO3.Fluid
  • Category deleted (432)

Also available in: Atom PDF