'fixes' an issue where you can get any property value back due to the incorrect cache key being used

This commit is contained in:
Shannon
2018-05-08 16:01:20 +10:00
parent 7728dfa853
commit 389fb100bb
3 changed files with 26 additions and 23 deletions

View File

@@ -1075,7 +1075,6 @@ namespace Umbraco.Core.Services.Implement
//we need to unpublish everything if this is a mandatory language
var unpublishAll = _languageRepository.GetMany().Where(x => x.Mandatory).Select(x => x.IsoCode).Contains(culture, StringComparer.InvariantCultureIgnoreCase);
//fixme - this needs to be changed when 11227 is merged!
content.ClearPublishedValues(culture, segment);
//now we just publish with the name cleared
SaveAndPublish(content, userId);