Project

General

Profile

Actions

Bug #18443

closed

Problems with nested childrecords

Added by Jens Schmietendorf over 16 years ago. Updated over 13 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Warning: array_unique() [function.array-unique]: The argument should be an array in .\t3lib\class.t3lib_tceforms_inline.php on line 1831

I have to nested tables with a IRRE child:

$TCA['tt_news'] = Array (
...

'tx_ppaddfields_beitraege' => array (        
'exclude' => 1,
'label' => 'beitraege',
'config' => array (
'type' => 'inline',
'foreign_table' => 'tx_pp_beitraege',
'maxitems' => 10,
'appearance' => Array(
'collapseAll' => 1,
'expandSingle' => 1,
'newRecordLinkAddTitle' => 1,
)
)
),
...
)

$TCA['tx_pp_beitraege'] = Array (
...

'infobox' => array (        
'exclude' => 1,
'label' => 'infobox',
'config' => array (
'type' => 'inline',
'foreign_table' => 'tx_pp_infobox',
'maxitems' => 10,
'appearance' => Array(
'collapseAll' => 1,
'expandSingle' => 1,
'newRecordLinkAddTitle' => 1,
)
)
),

...
)

If I trie to make a new record tx_pp_infobox and save the nested record construct I run into the warning message.

(issue imported from #M7855)


Files

bug_IRRE_array_unique.gif (31.7 KB) bug_IRRE_array_unique.gif Administrator Admin, 2008-03-14 10:49
inlineview.patch (520 Bytes) inlineview.patch Administrator Admin, 2010-09-24 17:02
7855_v2.patch (623 Bytes) 7855_v2.patch Administrator Admin, 2010-11-04 19:06

Related issues 2 (0 open2 closed)

Is duplicate of TYPO3 Core - Bug #18202: Issues with expand/collapse of child recordsClosedOliver Hader2008-02-13

Actions
Has duplicate TYPO3 Core - Bug #20061: Probelem saving expanded state of child recordsClosedBenni Mack2009-02-20

Actions
Actions

Also available in: Atom PDF