Project

General

Profile

Actions

Bug #20510

closed

Extbase/Fluid does not support to fill an array from formular's text-fields

Added by Marcel Rosenberger over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-05-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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">

&lt;f:form.textbox property=&quot;arrayelement&quot; /&gt;
&lt;f:form.textbox name=&quot;newMyclass[arrayelement[]]&quot; value=&quot;{arrayelement}&quot; /&gt;
&lt;f:form.textbox name=&quot;newMyclass[arrayelement][]&quot; value=&quot;{arrayelement}&quot; /&gt;
&lt;/f:for&gt;
&lt;/f:form&gt;

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)

Actions #1

Updated by Marcel Rosenberger over 15 years ago

<f:form.textbox property="myarray" />

Actions #2

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

Actions #3

Updated by Christian Kuhn over 14 years ago

Resolved, no change required: Wrong bugtracker and no feedback for a long time.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF