Project

General

Profile

Actions

Bug #18139

closed

TCEforms does not save all irre-elements

Added by Malte Jansen about 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-02-06
Due date:
% Done:

0%

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

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)

Actions #1

Updated by Oliver Hader about 16 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.

Actions #2

Updated by Oliver Hader about 16 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)

Actions #3

Updated by Oliver Hader about 16 years ago

Closing bug since missing configuration property "maxitems" in tca.php of extension.

Actions

Also available in: Atom PDF