Skip to content

Commit d105f02

Browse files
committed
only update canonical
1 parent cf31eae commit d105f02

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## Unreleased
44

55
- Fixed a bug where catalog pricing rules could generate promotional prices for non-promotable purchasables. ([#4118](https://github.com/craftcms/commerce/issues/4118))
6-
- Fixed a bug where variants weren’t duplicating correctly. ([#4125](https://github.com/craftcms/commerce/issues/4125))
6+
- Fixed a bug where variants weren't duplicating correctly. ([#4125](https://github.com/craftcms/commerce/issues/4125))
7+
- Fixed a bug where variant titles were being incorrectly updated when the Variant Title Format referenced the product. ([#4126](https://github.com/craftcms/commerce/issues/4126))
78
- Fixed a SQL error that could occur when deleting a shipping method.
89

910
## 5.4.6 - 2025-09-04

src/elements/Product.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,8 @@ public function beforeSave(bool $isNew): bool
18071807
{
18081808
$productType = $this->getType();
18091809

1810-
if (!$productType->hasVariantTitleField &&
1810+
if ($this->getIsCanonical() &&
1811+
!$productType->hasVariantTitleField &&
18111812
$productType->variantTitleFormat &&
18121813
StringHelper::containsAny($productType->variantTitleFormat, ['product.', 'owner.', 'primaryOwner.'])
18131814
) {

0 commit comments

Comments
 (0)