I have…
- [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
Unique field validation is triggered when editing content even though unique field is not modified.
Expected behavior
Unique field validation is only triggered when editing content if unique field is modified.
Minimal reproduction of the problem
- Create schema with one unique string field and one non unique string field (see JSON below).
- Create content for schema with unique field = original value and non unique field = original value.
- Save content.
- Edit content, change non unique field = new value, don’t modify unique field.
- Save content.
- Notice unexpected validation error.
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 5.0.0.0
Browser:
- [x] Chrome (desktop)
- [x] Chrome (Android)
- [ ] Chrome (iOS)
- [x] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [x] Edge
Others:
Schema JSON:
{
"properties": {},
"scripts": {},
"fieldsInLists": [],
"fieldsInReferences": [],
"fields": [
{
"name": "uniqueField",
"properties": {
"fieldType": "String",
"editor": "Input",
"isUnique": true,
"contentType": "Unspecified"
},
"partitioning": "invariant"
},
{
"name": "nonUniqueField",
"properties": {
"fieldType": "String",
"editor": "Input",
"contentType": "Unspecified"
},
"partitioning": "invariant"
}
],
"isPublished": true
}