Skip to content

Commit

Permalink
fix(core): Include variant custom fields when duplicating a product (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mschipperheyn authored Dec 18, 2024
1 parent 07e74f7 commit 69a1de0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export const productDuplicator = new EntityDuplicator({
return {
languageCode: translation.languageCode,
name: translation.name,
customFields: translation.customFields,
};
}),
optionIds: options.map(option => option.id),
Expand All @@ -190,6 +191,7 @@ export const productDuplicator = new EntityDuplicator({
stockLocationId: stockLevel.stockLocationId,
stockOnHand: stockLevel.stockOnHand,
})),
customFields: variant.customFields,
};
});
const duplicatedProductVariants = await productVariantService.create(ctx, variantInput);
Expand Down

0 comments on commit 69a1de0

Please sign in to comment.