Discussions
unique / required bug when empty
3 years ago by Grégoire Colson
I have a content_type people with an attribute email set like this :
- email:
label: Email
type: string
required: false
hint: Email / contact de la personne
localized: false
group: Attributs
unique: true
The issue (which I think is an actual bug) is that, as it is not required, editors sometimes leave it blank, but as it should be unique, it does not work for more than one person.
In my opinion, when required is false and unique is true, the uniqueness should only be verified when the attribute is not blank.
