-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline form fields need to be psuedo-namespaced #381
Comments
Hmmm. Renaming the fields and getting them into the Redux form's state is easy enough, but redux-form won't render the value for the form field if the name is an array for some reason. |
I suspect the bug is in how admin converts the form state into something that redux will accept - i.e. form fields like A workaround we could entertain would be using |
This is working, but using underscored names rather than arrays. If we choose to go this route we'd need to serialise the form data as mentioned above. Another expensive option would be that the page loads its elements and all CMS fields for each element then looks for each field in the request data explicitly... =/ |
Interim solution PR at #386 |
With #372 all form fields for inline element editing are given HTML names from their element, e.g.
Title
,HTML
etc.This not only conflicts between elements but also with the page that the forms sit in. Changing a basic content block's Title then overrides the page's Title when saving (#328).
I propose that we prefix element CMS field names with something unique to them, e.g.:
Where 123 is the element's ID
Pull requests
The text was updated successfully, but these errors were encountered: