Bug #18139
closedTCEforms does not save all irre-elements
0%
Description
I just discover, that the tceform does not save all irre-elements. Only the first element is saved.
For simulation use following extension and remove the maja_condition:
http://typo3.org/extensions/repository/view/maja_condrequired/0.0.2/
replace "field2" with following lines:
"field2" => Array (
"exclude" => 1,
"label" => "Field 2: Trigger4;Subfield2-at least one item, Trigger4;Subfield3-at least two items",
"config" => Array (
"type" => "inline",
"foreign_table" => "tx_majacondrequired_irre",
"minitems" => 3,
"requiredCond" => "trigger4;1&!field2;1-|trigger4;2&!field2;2-",
)
),
(issue imported from #M7415)
Updated by Oliver Hader almost 17 years ago
I can confirm this issue. The reason is a bug(?) which was also present in TYPO3 4.0.
In t3lib_TCEmain::checkValue_checkMax() there's the following line:
$maxI = isset($tcaFieldConf['maxitems']) ? intval($tcaFieldConf['maxitems']):1;
This means, that if no maxitems property is set, a default value of "1" will be taken. Thus, only one item is saved.
You can solve it in your case by setting "maxitems" to the same value as "minitems". I don't know why this check was integrated in t3lib_TCEmain.
Updated by Oliver Hader almost 17 years ago
From doc_core_api of 'TYPE: "inline"' (also present in "select"):
Key: maxitems
Datatype: integer > 0
Description: Maximum number of items in the selector box. (Default = 1)
Updated by Oliver Hader almost 17 years ago
Closing bug since missing configuration property "maxitems" in tca.php of extension.