Bug #80825
closed
Story #69617: FormEngine bugs
FlexForm Sections don't get saved before the parent record was stored to the DB
Added by Daniel Goerz over 7 years ago.
Updated about 6 years ago.
Category:
FormEngine aka TCEforms
Description
Reproduce with current 8LTS and styleguide extension:
- Create a styleguide record "Form engine - flex"
- Go to tab "section container"
- Create one or more container.
- Save & Close
The error message "1: Attempt to insert record on page '[root-level]' (0) where this table, tx_styleguide_flex, is not allowed" is shown and the flexform was not stored. The field flex_2 of the newly created record is empty.
Containers can be created without problems once the parent recod is saved. The issue only occurs on creation of a new recod when it is saved for the first time.
Files
- Description updated (diff)
- Subject changed from FlexForm Sections don't get saved before the parent CE was stored to the DB to FlexForm Sections don't get saved before the parent record was stored to the DB
- Assignee set to Christian Kuhn
As discussed on slack, Christian needs free brain space for this one :)
Thank you for taking care!
- Related to Bug #80473: Do not bypass fetch of database record if tableName is tt_content added
- Related to Task #80100: Bypass fetch of database record if already loaded added
- Related to Bug #80426: Creating a FlexForm section causes exception in ajax request (none admin user) added
I have a content element with flexform section and it always gives a 503 error when I try to add a new section element before saving the content itself. I think it's related to this.
The exception thrown is:
#1476107295: PHP Warning: Invalid argument supplied for foreach() {mybasedir}/typo3_src/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php line 48 (More information)
I'm using and admin account on TYPO3 8.7.1
The same flexform works fine on 7.6.18
- Priority changed from Should have to Must have
Any info if this will be adressed at least in 8.7.2 since it's a blocking issue when dealing with flexform sections
- Status changed from New to Under Review
I tried out the patch set 2 and it solves the problem for me. Thanks.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Was this solved on 8.7.2?
THe problem I reported on my comment still exists. Not sure if it's another problem or this issue didn't came to 8.7.2;
Hey Riccardo. What you describe looks like a different issue. The one tackled with the patch was only about flex form sections and - yes - this is now solved in TYPO2 8.7.2 thanks to Christian!
Thanks for your answer Daniel. I created an issue to the problem I've reported: #81684
- Related to Bug #81684: Flexform sections can't be created until content element is saved added
- Related to deleted (Bug #81684: Flexform sections can't be created until content element is saved)
- Status changed from Resolved to Closed
Also available in: Atom
PDF