Try our conversational search powered by Generative AI!

Get the wrong result when comparing CultureInfo Instances

Found in

Release 7.5

Created

Dec 31, 2013

Updated

Feb 20, 2014

Area

Falcon/CMS/Edit UI

State

Closed, Fixed and Tested


Steps to reproduce

DevNote: It can be the cause of issue (http://www.toolheaven.net/post/2010/07/02/Beware-when-comparing-CultureInfo-instances.aspx)

 

I am getting the wrong information(Master Language) of Exsiting Languages because of the comparison of CultureInfo Instances in ContentDataStoreModelTransform class:

 

return new ContentLanguageBranchModel(l)

{

UrlSegment = urlSegment,

CommonDraftLink = commonDraft != null ? commonDraft.ContentLink : null,

IsMasterLanguage = l == localizableContent.MasterLanguage,

AccessMask = GetAccessRights(contentLanguage)

};