Try our conversational search powered by Generative AI!

Display name of Node and Catalog Content Base displaying incorrectly when used with "AllowedTypes"

Found in

EPiServer.Commerce 11.2.2

Fixed in

EPiServer.Commerce 11.5.1

(Or a related package)

Created

Nov 29, 2017

Updated

Dec 12, 2017

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Decorate the property with “[AllowedTypes]”, and state some property types.

    [AllowedTypes(typeof(PageData), typeof(EntryContentBase), typeof(FashionProduct), typeof(FashionVariant), typeof(ContentData), typeof(CatalogContentBase), typeof(NodeContentBase))]
            public virtual IList<ContentReference> ConentReferenceList { get; set; }
    

  2. In All property mode, Page, Entry, Product, Variant seem to be described correctly. For example, you can add these content types Page, Entry, Product, Variant/SKU, Content, Content, Content.

Expected:
Content Data, Node and Catalog content are displayed with descriptive text.

Actual:
Content Data, Node and Catalog content display as “Content”.