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
Go to the Content-type Builder, create a new collection type
Add a new field of custom type UUID (from this plugin)
Save the model and wait for the server to restart
Go to the Content Manager and create a new entry for the type just created
Observe that the UUID is correctly generated, but the save button is disabled.
Try to input something into the field, the save button will turn on but now saving the entry will return an error on the field: The value does not match the regex
Try to copy paste a generated value: the regex should match now, but the error remains
The text was updated successfully, but these errors were encountered:
dappiu
changed the title
Problem on content types with Draft/Publish feature enabled
Problem on content types where uuid is the only field
May 29, 2023
Hello @dappiu i tried to follow your steps, but i could correctly save the new custom type with only UUID field in it. Do you have any further details to share? like a short video, log or any other info
I actually found that the described errors here and in #4, including the The value does not match the regex error, are occurring, when trying to populate existing records with a UUID. When creating a new record, everything is working fine and the UUID is also appearing in the API data.
@jonrot1906, so if I understand correctly, I create a new model without auto UUID. Then, I create a few records, and after that, I add auto UUID to the model. It shouldn't work, right?
@jonrot1906, so if I understand correctly, I create a new model without auto UUID. Then, I create a few records, and after that, I add auto UUID to the model. It shouldn't work, right?
Exactly. But if you create the records after you added the auto UUID, everything is fine.
Strapi Version: 4.10.6
Node Version: 18.16.0
Steps to reproduce (using the admin UI):
The value does not match the regex
The text was updated successfully, but these errors were encountered: