Skip to content

Commit 97ae9f4

Browse files
committed
Fix generated SKU not actually getting saved.
1 parent a06f9d8 commit 97ae9f4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Modules/OrchardCore.Commerce/Handlers/SkuValidationHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public override async Task CreatingAsync(CreateContentContext context, ProductPa
4444
(string.IsNullOrWhiteSpace(part.Sku) || !generator.IsManualAllowed))
4545
{
4646
part.Sku = await generator.GenerateSkuAsync(part.ContentItem);
47+
part.ContentItem.Apply(part);
4748
}
4849

4950
await CreatingOrUpdatingAsync(part);

0 commit comments

Comments
 (0)