Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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)