OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Added flag to display a single model error for MediaLibraryPickerField #8700

Closed AndreaPiovanelli closed 1 year ago

AndreaPiovanelli commented 1 year ago

Added flag to display a single model error by LocalizationExtensionHandler if media have been removed from the field only. This ensures that no duplicate model error has displayed.

The flag is true when the field is set to remove items without localization and one or more media items cannot be localized. Afterwards, to display a model error, this flag is checked in combination with the previously implemented checks (if field is required and any media item is selected).

AndreaPiovanelli commented 1 year ago

Hi @sebastienros Any comment on this pr? Can we merge it?