[Bug]: publishing object with Localized Fields set as mandatory with no mandatory languages result in validation error.
Opened this issue · 1 comments
Expected behavior
Object is published successfully, since all localized fields are filled in.
Actual behavior
An error: "Validation failed: Empty mandatory field [ Name ][ localizedfields- ]" is thrown.
Steps to reproduce
Pimcore 11.4.1
DataHub: 1.8.2
PHP: 8.2.19
- In System Settings make sure none of the frontend languages in "Localization & Internationalization (i18n/l10n) is marked as "Mandatory language"
- Create a class of object which contains at least one "Localized Fields", in my example "Name".
- Make sure this field inside "Localized Fields" is marked as "Mandatory field"
- Create a new object of that class. Fill all the data for this Localized Field (every language).
- Try to Save & Publish this object.
And the validation error is thrown despite this field being filled in all languages and even though none of the languages is even marked as Mandatory.
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.