Bug #70951
closed
Story #69617: FormEngine bugs
PHP Warning while calling renderForeignRecordHeader
Added by Stefan Froemken about 9 years ago.
Updated about 7 years ago.
Category:
FormEngine aka TCEforms
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
Stefan, can you please provide a patch for that and push it to Gerrit? It seems that you already had changed these things on your side, so why not just pushing it to the accordant place at review.typo3.org? Thx! :)
- Status changed from New to Under Review
- Parent task set to #69617
Hi Olli,
I only have mentioned one example and I have titled it as "Example". How many problems of this case we have in TYPO3 Core? 50? 100? Since the refactoring I just have found two of them and solved one. With this ticket I wanted to start a task to search for further problems of this type. So IMO this ticket is not solveable with a 3 letter change.
So what's next? Should I/We/Community create a new patch for each kind of this problem? If yes, than you're right and I can solve and push a solution within seconds.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
was resolved with the solution from the related issue.
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF