Bug #18443
closedProblems with nested childrecords
0%
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
Updated by Oliver Hader over 16 years ago
This issue should be solved with RFC #18202 - please get the file "0007511_41.patch" there, apply it and gimme a feedback whether the behaviour you mentioned still persists. Thanks in advance!
Updated by Jens Schmietendorf over 16 years ago
I applied the patch, but the warning message "Warning: array_unique() [function.array-unique]: The argument should be an array in..." still remain.
With a quick-and-dirty change of line 1827 in class.t3lib_tceforms_inline.php the warning disappears:
$inlineViewCurrent = is_array($inlineViewCurrent) ? array_unique($inlineViewCurrent) : $inlineViewCurrent;
But I guess that´s probably not the real solution ;-)
Updated by Carsten Bleicker about 14 years ago
Feedback:
Bug is still present in TYPO3 4.4.4
Patching with 7855_v2.patch fixed the Bug.
Updated by Benni Mack about 14 years ago
committed v2 to trunk (rev 9369).
committed v2 to TYPO3_4-4 (rev 9370).