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
When creating a dexterity type, it's possible to add multiple fields with the same short name.
I added a field called title (and there is already the default (required) Dublin Core title field.
This resulted in the creation of broken content items: I filled in a value for the first title field, and left the second field blank. The submitted form is valid because the required field has a value, but the created item was broken because the value set on the item was taken from the second (blank) title field.
Dexterity should not allow the creation of multiple fields with the same short name, as the last field value wins.
The text was updated successfully, but these errors were encountered:
Well. In fact, the problem is the default attribute storage cannot deal with it, not that different behaviors may contain the same field. When using behaviors with adapters that are aware of the fact a name for a thing in a storage can collide, then this would not be a problem. For pure adapter-less (or in fact not adapter-less, it assumes the adapter-is-the-context) behaviors there is no good way to check. I think it is more a documentation thing: Use prefixes.
When creating a dexterity type, it's possible to add multiple fields with the same short name.
I added a field called
title
(and there is already the default (required) Dublin Coretitle
field.This resulted in the creation of broken content items: I filled in a value for the first
title
field, and left the second field blank. The submitted form is valid because the required field has a value, but the created item was broken because the value set on the item was taken from the second (blank) title field.Dexterity should not allow the creation of multiple fields with the same short name, as the last field value wins.
The text was updated successfully, but these errors were encountered: