Bug #20510
closedExtbase/Fluid does not support to fill an array from formular's text-fields
0%
Description
If you have a class that has an array as a property you cannot create the array's elements from multiple formular's textfields.
Sample:
--- Model ---
class Tx_MyExt_Domain_Model_Myclass extends Tx_Extbase_DomainObject_AbstractEntity {/*
- @var array
*/
protected $myarray;
[...]
}
--- Fluid Template ---
<f:form method="post" controller="Mycontroller" action="create" name="newMyclass" object="{newMyclass}">
<f:for each="{newMyclass.myarray}" as="arrayelement">
<f:form.textbox property="arrayelement" />
<f:form.textbox name="newMyclass[arrayelement[]]" value="{arrayelement}" />
<f:form.textbox name="newMyclass[arrayelement][]" value="{arrayelement}" />
</f:for>
</f:form>
Neither Test (1) nor Test (2) nor Test (3) is not working. The error shown is:
Fatal error: Class 'array' not found in C:\project_a\t3lib\class.t3lib_div.php on line 4794
(issue imported from #M11196)
Updated by Marcel Rosenberger over 15 years ago
<f:form.textbox property="myarray" />
Updated by Oliver Hader about 15 years ago
Hi Marcel,
does this bug still exist with the lates release of TYPO3 4.3-beta1 and an updated version of Extbase?
If so, please report your bug again in the Extbase/Fluid issue tracker on forge:
http://forge.typo3.org/projects/typo3v4-mvc/issues
Updated by Christian Kuhn over 14 years ago
Resolved, no change required: Wrong bugtracker and no feedback for a long time.