Issue Bug Closed

#18443Problems with nested childrecords

Jens Schmietendorf 03/14/08, 10:49 updated 03/29/11, 14:22

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.