A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Please share the code of overridden property and any customization on that (if any). I tested overriding a property (Category) and just copied original get/set code and it was working.
Without seeing your code, it's hard to pinpoint what is the error, but making a property required may also be done like this:
[EditorDescriptorRegistration(TargetType = typeof(CategoryList))]
public class MakeCategoryRequiredEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
base.ModifyMetadata(metadata, attributes);
if (metadata.PropertyName == "icategorizable_category")
{
metadata.IsRequired = true;
}
}
}
I have overridden properties to make them culture-specific and required.I cannot save/update after overridding them. e.g. I have overridden category property of PageData Class and miquantity, maxquantity of VariationContent Class.