Issue Bug Closed

#70951PHP Warning while calling renderForeignRecordHeader

Stefan Froemken 10/22/15, 14:11 updated 10/21/17, 17:35

Description

Hello Core-Team,

in case of restructuring the TCA all values for selct-fields are of type array now. I know, we can’t revert it, but we have to update the related code.

Example:

InlineRecordContainer::renderForeignRecordHeader() at line 358 we have following:

$valueParts = GeneralUtility::trimExplode(‘|’, $rec[$titleCol]);

In my case the field was declared as type “inline”, so $rec[$titleCol] returns an array now, which results in following warning:

PHP Warning: explode() expects parameter 2 to be string, array given

Stefan

Reviews 1