Expected: To get a notification that I was unable to delete the variant and the variant should remain in the list.
Actual: No notification and the list removes the variant. As a user I will believe that the relation is removed. When I refresh the browser the variant is still there.
[Exception: The product's variant cannot be deleted.]
Bug.CatalogListenerSimplified.RelationUpdating(Object source, RelationEventArgs args) in c:\Source\Stash\commerce\EPiServer.Commerce.Sample\CatalogListenerSimplified.cs:12
Mediachase.Commerce.Catalog.RelationEventHandler.Invoke(Object sender, RelationEventArgs e) +0
Mediachase.Commerce.Catalog.EventContext.RaiseRelationUpdatingEvent(CatalogRelationDto sender, RelationEventArgs args) in c:\Source\Stash\commerce\ECF\Mediachase.Commerce\Catalog\EventContext.cs:344
Mediachase.Commerce.Catalog.Managers.CatalogRelationManager.SaveCatalogRelation(CatalogRelationDto dataset) in c:\Source\Stash\commerce\ECF\Mediachase.Commerce\Catalog\Managers\CatalogRelationManager.cs:172
Mediachase.Commerce.Catalog.Impl.CatalogContextImpl.SaveCatalogRelationDto(CatalogRelationDto dto) in c:\Source\Stash\commerce\ECF\Mediachase.Commerce\Catalog\Impl\CatalogContextImpl.cs:1327
EPiServer.Commerce.Catalog.Linking.LinksRepository.RemoveRelationsForEntry(IList`1 relations) in c:\Source\Stash\commerce\EPiServer.Business.Commerce\Catalog\Linking\LinksRepository.cs:262
EPiServer.Commerce.Catalog.Linking.LinksRepository.RemoveRelationsInternal(IList`1 relations) in c:\Source\Stash\commerce\EPiServer.Business.Commerce\Catalog\Linking\LinksRepository.cs:157
EPiServer.Commerce.Catalog.Linking.LinksRepository.RemoveRelations(IEnumerable`1 relations) in c:\Source\Stash\commerce\EPiServer.Business.Commerce\Catalog\Linking\LinksRepository.cs:130
EPiServer.Commerce.Catalog.Linking.RelationRepositoryExtensions.RemoveRelation(IRelationRepository relationRepository, Relation relation) in c:\Source\Stash\commerce\EPiServer.Business.Commerce\Extensions\RelationRepositoryExtensions.cs:16
EPiServer.Commerce.Shell.Rest.RelationStore.Delete(String id) in c:\Source\Stash\commerce\EPiServer.Commerce.Shell\Rest\RelationStore.cs:148
lambda_method(Closure , ControllerBase , Object[] ) +127
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +258
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +120
System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452
System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452
System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +15
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +33
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240
EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) +175
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +299