Unable to Publish Single Type in Non-Default Locale if It's Not Created in Default Locale #20188
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: plugin:i18n
Source is plugin/i18n package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Required System Information
Describe the Bug
A user cannot publish a single type in a specific locale if that single type hasn't been created in the default locale, or if the user lacks access to the default locale.
Steps to Reproduce
Expected Behavior
The user should be able to publish a single type in a specific locale, even if it's not created in the default locale, or if the user lacks access to the default locale.
Screenshots
In this example,
fr-FR
is the default locale.en-FR
:publishing the single type gives a countDraftRelations error with a status code of 404 because it hasn't been created in the default locale (fr-FR).
In this case,
countDraftRelations
failed with a 403 because the user didn't have access to the default locale.I belive that these errors occur because
countDraftRelations
checks the default locale instead of the current one.The text was updated successfully, but these errors were encountered: