We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc6337a commit 5eeb4ccCopy full SHA for 5eeb4cc
src/collective/volto/formsupport/adapters/post.py
@@ -306,8 +306,9 @@ def format_fields(self):
306
{
307
**field,
308
**submitted_field,
309
+ "id": submitted_field["field_id"], # Ensure we always use the submitted field id
310
"display_value_mapping": field.get("display_values"),
- "custom_field_id": self.block.get(field["field_id"]),
311
+ "custom_field_id": self.block.get(submitted_field["field_id"]),
312
# We're straying from how validations are serialized and deserialized here to make our lives easier.
313
# Let's use a dictionary of {'validation_id': {'setting_id': 'setting_value'}} when working inside fields for simplicity.
314
"validations": validations_for_field,
0 commit comments