strapi / strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.
https://strapi.io
Other
64.07k stars 8.16k forks source link

UID (slug) is not being auto-regenerated after the attached field is changed #19151

Open eduardosz98 opened 11 months ago

eduardosz98 commented 11 months ago

Bug report

Required System information

Describe the bug

UID field with an attached field is not being auto-regenerated on attached field changes. E.g.: On "title" text changed, "slug" field does not regenerate its value. I have been using Stripe with versions between 4.5.1 and 4.6.2 and in older versions i remember this feature worked, maybe it has been broken in some collaboration of the project.

I have been reading this issue and maybe it can have some relation:

UID (slug) updates automatically on edit even with no changes to related field.

11533

Steps to reproduce the behavior

  1. In development mode, go to "Content-Type Builder" menu on admin panel
  2. Click on "Create new collection type" and create an test content-type adding 2 fields:
    • "title" of type "Text"
    • "slug" of type "UID" (attached to "title" field created before)
  3. Go to "Content Manager" menu on admin panel
  4. Access the collection type referenced to the Content-Type created before
  5. Click on "Create new entry"

Expected behavior

When the user is typing on "title" field, the expected behavior is to auto regenerate slug, but only on "Regenerate" button click that "slug" value changes.

Screenshots

image
RenzoBA commented 7 months ago

I have the same problem. My strapi version: 4.22.0

EnzoBatista commented 5 months ago

Same issue here! Strapi v4.23.0

troyere commented 2 months ago

Same issue, on the 4.25.11