Project

General

Profile

Actions

Bug #18443

closed

Problems with nested childrecords

Added by Jens Schmietendorf about 16 years ago. Updated about 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 #1

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

Actions #2

Updated by Jens Schmietendorf about 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 ;-)

Actions #3

Updated by Peter Klein about 16 years ago

Bug is also present in TYPO3 v4.2 RC1

Actions #4

Updated by Carsten Bleicker over 13 years ago

Feedback:
Bug is still present in TYPO3 4.4.4
Patching with 7855_v2.patch fixed the Bug.

Actions #5

Updated by Benni Mack over 13 years ago

committed v2 to trunk (rev 9369).
committed v2 to TYPO3_4-4 (rev 9370).

Actions #6

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF