Query syntax error upon saving for content type with name: XXXs and plural XXXses #5141
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:strapi
Source is core/strapi package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Describe the bug
When the content type name ends with 'XXXs' and the plural form is 'XXXses' upon saving of new entry i get this error:
The column in the table is properly named - lotuses_components.lotus_id not lotuses_components.lotuse_id
Stack trace:
Steps to reproduce the behavior
I reproduced it with the following models:
lotus content type
license component
translations component
Expected behavior
The query should be properly generated based on the actual column name which is lotus_id.
And the entry should save without an issue.
System
The text was updated successfully, but these errors were encountered: