Virtual Happy Hour is canceled this month due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month due to Good Friday.
EPiServer.Commerce 11.2.1
EPiServer.Commerce 11.2.6
Sep 18, 2017
Oct 06, 2017
Core
Closed, Fixed and tested
Steps to reproduce
1. Install QuickSilver 11.2.2.
2. Create a save event hook in the method Initialize of SiteInitialization class.
ServiceLocator.Current.GetInstance<IContentEvents>().SavedContent += (object sender, ContentEventArgs e) => { if (e is SaveContentEventArgs) { var arg = e as SaveContentEventArgs; if (arg.ForceCurrentVersion) { return; } } var currentContent = e.Content as CatalogContentBase; var targetContent = currentContent.CreateWritableClone(); var action = SaveAction.Save | SaveAction.SkipValidation | SaveAction.ForceCurrentVersion; ServiceLocator.Current.GetInstance<IContentRepository>().Save(targetContent, action, AccessLevel.NoAccess); };
3. Change the brand of the product without publishing.
Expected: The change is not displayed on front end page because it's a draft version.
Actual: The change is displayed on the front end page even though it's a draft version.