strapi / strapi

πŸš€ Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.
https://strapi.io
Other
62.74k stars 7.88k forks source link

Can add two attributes with the same name and save #20364

Closed maccomaccomaccomacco closed 4 days ago

maccomaccomaccomacco commented 3 months ago

Bug report

Required System information

Describe the bug

The content type builder is not preventing from saving when it has two fields with the same name

Steps to reproduce the behavior

  1. edit a content type
  2. add a field of any type with the same name as an existing field
  3. click save

Expected behavior

The input validation should check existing fields and I should be prevented from adding the second field.

Eventyret commented 3 months ago

Confirmed in v 5.0.0.-beta.8 There are no errors and it also overwrites it.

  1. Create a blog
  2. Create a title field as a text
  3. Save
  4. Edit and add another title field but this time as a number
  5. Save It now is a number no error or anything