Skip to content

Commit

Permalink
Merge branch 'release/v103.0.8' into 'master'
Browse files Browse the repository at this point in the history
release/v103.0.8 into master

See merge request agence-dnd/marketplace/magento-2/external/magento2-connector-community!45
  • Loading branch information
Rémi V committed Oct 13, 2022
2 parents cab8160 + 7629a4a commit a8509c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Helper/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a8509c7

Please sign in to comment.