Default values for Commerce content only work for selected language when content is created

Found in

EPiServer.Commerce 13.17.0

Fixed in

EPiServer.Commerce 13.29.0

Created

Nov 06, 2020

Updated

Feb 09, 2021

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. On Quicksilver make sure there are multiple languages enabled for catalog content. (en, sv - with en is master and selected language)
  2. Create a content which inherits from NodeContent like
public class TestContent : NodeContent 
{
     [CultureSpecific] 
     public virtual string Text {get;set;}

     public override voide SetDefaultValues(ContentType contentType)
     {   
        Text = "Some text";
        base.SetDefaultValues(contentType);   
     }
}

          3. Create TestContent in catalog

Expected:

Should set default value for all language version (en, sv)

Actual:

Only sets it for language you've selected (en) when creating the content (but not sv)