You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This indicates Form C has a nested form, nesting Form A. The values in exports are the machineName values.
When reimporting this Form C instead gets Form B as a nested form.
Expected behavior
After reimport, Form C should still contain Form A.
The code is not easy to follow so perhaps this is an oversight from me, but here it appears the model.name field is inserted into template.forms. Everywhere else in the code in this file, the entity.form === machineName is used to extract data from this template.forms object.
The text was updated successfully, but these errors were encountered:
Hi, @JeroennC. Thank you for reporting this issue. I am able to reproduce and have logged a ticket for the backlog. We are always willing to review any contributions from the open source community to resolve this issue.
For internal reference: FIO-9929
Also, we don't recommend changing the machineName because it can break the export/import
Describe the bug
We have issues where exporting and importing two forms with close identifiers are causing incorrect imports.
Version/Branch
9.3.1
To Reproduce
Steps to reproduce the behavior:
Example template/export:
Form A:
Form B:
Form C:
This indicates Form C has a nested form, nesting Form A. The values in exports are the machineName values.
When reimporting this Form C instead gets Form B as a nested form.
Expected behavior
After reimport, Form C should still contain Form A.
Additional context
I've dug through the code and believe this line to be the cause: https://github.com/formio/formio/blob/794cd8d92c54addc6742c612287d4d3e98bab348/src/templates/import.js#L1129C13-L1129C27
The code is not easy to follow so perhaps this is an oversight from me, but here it appears the model.name field is inserted into
template.forms
. Everywhere else in the code in this file, theentity.form
=== machineName is used to extract data from thistemplate.forms
object.The text was updated successfully, but these errors were encountered: