Ensures that the PublishedContent culture dictionary is CultureInvariantIgnoreCase and fixes the publish dialog to allow publishing the current culture if the user has edited it

This commit is contained in:
Shannon
2018-05-08 13:50:39 +10:00
parent 177bba5e73
commit 7728dfa853
2 changed files with 14 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
if (_contentData.CultureInfos == null)
throw new Exception("oops: _contentDate.CultureInfos is null.");
return _cultureInfos = _contentData.CultureInfos
.ToDictionary(x => x.Key, x => new PublishedCultureInfo(x.Key, x.Value.Name, x.Value.Date));
.ToDictionary(x => x.Key, x => new PublishedCultureInfo(x.Key, x.Value.Name, x.Value.Date), StringComparer.InvariantCultureIgnoreCase);
}
}