From 411dc34bda5018984a649f9d3fe4f6b1befaab7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verri=C3=A8re?= Date: Tue, 11 Oct 2022 16:16:27 +0200 Subject: [PATCH 1/2] AKCOMAG2001-274: Fix URL rewrite generation when multiple url keys are duplicated --- Helper/Import/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Import/Product.php b/Helper/Import/Product.php index 33476b1e..b88e48c7 100755 --- a/Helper/Import/Product.php +++ b/Helper/Import/Product.php @@ -569,7 +569,7 @@ public function verifyProductUrl($requestPath, $product) $product->setUrlKey($product->getUrlKey() . '-' . $suffix); } if ($suffix >= 2) { - $product->setUrlKey(substr($product->getUrlKey(), 0, -(strlen($suffix - 1) + 1)) . '-' . $suffix); + $product->setUrlKey(substr($product->getUrlKey(), 0, -(strlen((string)($suffix - 1)) + 1)) . '-' . $suffix); } /** @var string $requestPath */ $requestPath = $this->productUrlPathGenerator->getUrlPathWithSuffix( From 7629a4a451b96660b42c9cee3282b2d150c1673c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verri=C3=A8re?= Date: Thu, 13 Oct 2022 10:55:29 +0200 Subject: [PATCH 2/2] v103.0.8: Add version 103.0.8 change log and bump composer.json version --- CHANGELOG.md | 3 +++ composer.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 961fd6a1..9e5088cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -374,3 +374,6 @@ * Fix Magento Framework dependency in composer.json * Fix advanced filter error when left empty * Improve URL generation requests for product job + +### Version 103.0.8 : +* Fix URL rewrite generation when multiple url keys are duplicated diff --git a/composer.json b/composer.json index a8e5a93d..bd32a778 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "nyholm/psr7": "^1.5" }, "type": "magento2-module", - "version": "103.0.7", + "version": "103.0.8", "license": [ "OSL-3.0", "AFL-3.0"