From cdb042611602110cd18a6216d4032fc6f65a6acb Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Tue, 10 Dec 2024 12:03:38 +0000 Subject: [PATCH] #3805 Inline-editable matrix fields not saving on variants Co-authored-by: Iwona Just --- CHANGELOG.md | 1 + src/base/Purchasable.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a8f17cd62..db68d6a985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Fixed a bug where a product’s default price was showing incorrectly on the Products index page. ([#3807](https://github.com/craftcms/commerce/issues/3807)) +- Fixed a bug where inline-editable Matrix fields weren’t saving content on product variants. ([#3805](https://github.com/craftcms/commerce/issues/3805)) - Fixed a bug where order errors weren't showing on the Edit Order page. ## 5.2.8 - 2024-12-04 diff --git a/src/base/Purchasable.php b/src/base/Purchasable.php index ce7906982c..764fbc4eb4 100644 --- a/src/base/Purchasable.php +++ b/src/base/Purchasable.php @@ -1119,6 +1119,8 @@ public function afterSave(bool $isNew): void */ public function afterPropagate(bool $isNew): void { + parent::afterPropagate($isNew); + Plugin::getInstance()->getCatalogPricing()->createCatalogPricingJob([ 'purchasableIds' => [$this->getCanonicalId()], 'storeId' => $this->getStoreId(),