Project

General

Profile

Actions

Bug #24154

closed

Error at TCA-Form if showitem is empty cause displayCond

Added by Arno Dudek over 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2010-11-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Following form configuration makes an error:

'checkfield' => array(

),
'sub_checkfield_1' => array(
'displayCond' => 'FIELD:checkfield:REQ:true',

),
'sub_checkfield_2' => array(
'displayCond' => 'FIELD:checkfield:REQ:true',

),
'sub_checkfield_3' => array(
'displayCond' => 'FIELD:checkfield:REQ:true',

),

'palettes' => array(
'5' => array('showitem' => 'sub_checkfield_1, --linebreak--, sub_checkfield_2, sub_checkfield_3'),
),

PHP Warning: implode() [function.implode]: Argument must be an array in […]/typo3_4.4.dev/t3lib/class.t3lib_tceforms.php line 5108

If no --linebreak-- is set, than it works. It works also, if sub_checkfields have no displayCond.

Easy workaround:
t3lib_tceforms.php line 5108
replace: $out .= implode($iRow[$i]);
with: $out .= @implode($iRow[$i]);

lg arno

(issue imported from #M16498)

Actions

Also available in: Atom PDF