AI OnAI Off
Jun 20, 2016
Oct 27, 2016
CMS Core
Closed, Fixed and tested
When creating a content item of a content type that implements ILocale but not ILocalizable, such types based on MediaData, the language is not initialized.
var english = CultureInfo.GetCultureInfo("en"); var content = contentRepository.GetDefault<MyImageData>(parentLink, english); // Expected Debug.Assert(content.Language.Equals(english)); // Actual Debug.Assert(content.Language.Equals(CultureInfo.InvariantCulture));
Same is true when calling CreateLanguageBranch (See CMS-3859, but this should probably throw instead)