Skip to content

Commit

Permalink
fix(product-duplicator): Add source variant customFields to duplicate…
Browse files Browse the repository at this point in the history
…d variant
  • Loading branch information
mschipperheyn committed Nov 8, 2024
1 parent 76d66c6 commit 35c0ad1
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 35c0ad1

Please sign in to comment.