Bug #70918
closed
Story #69617: FormEngine bugs
Adding inline relations in FlexForms is broken
Added by Felix Rauch over 8 years ago.
Updated over 5 years ago.
Category:
FormEngine aka TCEforms
Description
This bug was introduced with #70490, https://review.typo3.org/#/c/43755/ .
Given a field of type inline
in a plugin's FlexForm, creating IRRE child records fails with status code 500 Internal Server Error.
#1437654409: No $tableName given
InvalidArgumentException thrown in file
/opt/typo3_src-master/typo3/sysext/backend/Classes/Form/FormDataCompiler.php in line 81.
I attached the full stacktrace.
Going back before commit efa8c85
, this does not happen.
Files
- Status changed from New to Under Review
- Parent task set to #69617
Not sure if this belongs here, I've been testing patch set 8 of https://review.typo3.org/44579 and am still getting a 500 Internal Server Error when creating new relations.
Configuration retrieved from FlexForm is incomplete or not of type "inline".
This is the field's config, I don't know how it is incomplete:
<settings.boxBackground>
<TCEforms>
<label>Lorem</label>
<config>
<type>inline</type>
<maxitems>1</maxitems>
<foreign_table>sys_file_reference</foreign_table>
<foreign_field>uid_foreign</foreign_field>
<foreign_table_field>tablenames</foreign_table_field>
<foreign_label>uid_local</foreign_label>
<foreign_sortby>sorting_foreign</foreign_sortby>
<foreign_selector>uid_local</foreign_selector>
<foreign_selector_fieldTcaOverride type="array">
<config>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<foreign_match_fields type="array">
<fieldname>box_background</fieldname>
</foreign_match_fields>
<appearance type="array">
<newRecordLinkAddTitle>1</newRecordLinkAddTitle>
<headerThumbnail>
<field>uid_local</field>
<height>64</height>
<width>64</width>
</headerThumbnail>
</appearance>
</config>
</TCEforms>
</settings.boxBackground>
Some more information: Debugging shows that $parentConfig in FormInlineAjaxController->getParentConfigFromFlexForm does not contain my actual flexform, but only the tt_content default flexform config (with the only field being <xmlTitle>).
Felix, i can confirm your issue by thinking, but this is not trivial to solve. we'll probably merge the patch as is to mitigate the flex-inline problem for now and will extract your 'flex-inline-with-multiple-flex-ds-defined' to an own issue that will be handled after release.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
I'm experiencing this issue in TYPO3 7.6.4, too. This core patch fixed the issue for me (don't forget to patch fluidcontent, too. Link is included in this page):
http://p.cweiske.de/270
David Voigt wrote:
I'm experiencing this issue in TYPO3 7.6.4, too. This core patch fixed the issue for me (don't forget to patch fluidcontent, too. Link is included in this page):
http://p.cweiske.de/270
Not really ;) Of course $databaseRow need to be fetched correctly in detailAction as well. Otherwise ur not able open the image.
Find patch attached.
Cheers,
Nikolas
- Status changed from Resolved to Closed
Also available in: Atom
PDF