Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on content types where Draft & publish feature is activated #4

Open
dappiu opened this issue May 29, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@dappiu
Copy link

dappiu commented May 29, 2023

Strapi Version: 4.10.6
Node Version: 18.16.0

This may very well be related to #3

Steps to reproduce using the admin UI:

  1. Go to the Content-type Builder, create a new collection type and enable Draft & publish on the advanced settings tab
  2. Add a regular short text field (this is only to prevent falling into Problem on content types where uuid is the only field #3)
  3. Add another field of custom type UUID (from this plugin)
  4. Save the model and wait for the server to restart
  5. Go to the Content Manager and create a new entry for the type just created
  6. Observe that the UUID is correctly generated, but the save button is disabled.
  7. Input something on the text field, now the save button is enabled. Save the draft, but do not publish it.
  8. Now we came back to editing the entry because we want to publish it. The UUID is there on the field, but upon clicking on Publish an error is shown on the field This value is required.
  9. Try to edit the value, the error now shows The value does not match the regex
@scerelli scerelli self-assigned this Jun 13, 2023
@scerelli scerelli added the bug Something isn't working label Jun 13, 2023
@scerelli
Copy link
Contributor

scerelli commented Jun 23, 2023

Hello again. I can't reproduce the problem, I followed your steps and I could correctly publish my content, even without adding a text field. Did you try the plugin on a new strapi project?

Note: if you were using this other plugin: https://www.npmjs.com/package/@bn-digital/strapi-plugin-field-uuid check that you removed all parts of it in package json and delete your node_modules and perform a new npm/yarn install.

@scerelli scerelli added the question Further information is requested label Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants