Content Types ending with "s" can't be saved #5190
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: core:content-manager
Source is core/content-manager package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Describe the bug
When creating a content type that ends in the letter "s", Strapi automatically creates the table in the database using "es" for the plural. The problem is that if you have a component within that content type, the column with the ID added to the component table is correct without the "es", but Strapi looks for it just without the "s".
For example:
Content Type: "about_us"
Table name: "about_uses" (sounds funny, but whatever)
A component is added to the "about_us" content type. In the component table, the "about_us_id" column is added, but Strapi looks for the column "about_use_id".
Steps to reproduce the behavior
Expected behavior
The item should be saved and Strapi should look for the column without the "e" that it added to the name.
System
The text was updated successfully, but these errors were encountered: