Derived required property on block appears under "additional properties", not under "required properties"

Found in

EPiServer.CMS.UI 10.11.0

Created

Sep 08 2017

Updated

Sep 21 2017

Area

CMS UI

State

Closed, Won't Fix

Voting

Affected? You can raise the priority of a bug by voting for it. By doing so, you will be helping our developers to choose which bug to fix next.

Voting is disabled for closed bugs.

1

Description

Steps to reproduce:

  1. Have an abstract base block with a required property. A block derives from the base block, adding some additional functionality.

     public abstract class AsideBase : BlockData
        {
            [Display(Name = "Test", GroupName = "Test", Order = 10)]
            [Required]
            public virtual string Headline { get; set; }
        }
     
        [ContentType(DisplayName = "Info box", GUID = "5C282B8A-D316-442C-82F0-24F34FA7C8D5")]
        public class InfoAside : AsideBase
        {
            [Display(Name = "Info text", GroupName = "Test", Order = 20)]
            [Required]
            public virtual XhtmlString InfoText { get; set; }     
        }
    public override void SetDefaultValues(ContentType contentType) {
                base.SetDefaultValues(contentType);
                Headline = "Info";
            }
    

  2. Create this derived block in a ContentArea
    Actual behavior: The required property from the base class is listed under "additional properties", not under "required properties".
    Expected behavior: "Headline" appears under "required properties".

Comments