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
With a unique validation rule enabled, I can successfully edit an object while not modifying the unique validated field.
Observed Behavior
Unable to edit due to the unique validation rule being flagged for the validated field. Field value is still unique to that object, but when editing it's somehow being prevented from staying the same.
Steps to Reproduce
Create a new unique validation rule such as for dcim | deviceserial field with a max value of 1
Create an object of the same content type as the unique rule, such as a new device. Enter a unique value in validated field, such as 123 for serial
Then, edit that object by modifying a field other than the unique validated one (leave that field value the same). For example, add a note to the device and then try updating/saving it.
A validation error is returned for the unique validated field, despite not changing it. For example, when just trying to add a note to the device:
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
With a unique validation rule enabled, I can successfully edit an object while not modifying the unique validated field.
Observed Behavior
Unable to edit due to the unique validation rule being flagged for the validated field. Field value is still unique to that object, but when editing it's somehow being prevented from staying the same.
Steps to Reproduce
Create a new unique validation rule such as for
dcim | device
serial
field with a max value of 1Create an object of the same content type as the unique rule, such as a new device. Enter a unique value in validated field, such as
123
forserial
Then, edit that object by modifying a field other than the unique validated one (leave that field value the same). For example, add a note to the device and then try updating/saving it.
A validation error is returned for the unique validated field, despite not changing it. For example, when just trying to add a note to the device:
The text was updated successfully, but these errors were encountered: