Skip to content

Commit

Permalink
Merge pull request #664 from akeneo/release/104.0.6
Browse files Browse the repository at this point in the history
Release/104.0.6
  • Loading branch information
magentix authored Nov 14, 2023
2 parents e3da102 + 36af8e8 commit 6003d33
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,6 @@
* PGTO-388: Fix table names when tables are prefixed
* PGTO-389: Fix UUID retro-compatibility when sku is missing
* PGTO-390: does not flush cache and refresh index until the last product family

### Version 104.0.6 :
* PGTO-393: Replace the sku by the child product UUID in tmp related table
14 changes: 14 additions & 0 deletions Job/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -3155,6 +3155,20 @@ public function setRelated(): void
'sku'
);

if ($this->entitiesHelper->isProductUuidEdition()) {
// Replace the sku by the child product UUID in tmp related table
$entitiesTable = $this->entitiesHelper->getTable('akeneo_connector_entities');
$uuids = $connection->select()
->from(false, ['sku' => 'ace.code'])
->joinInner(
['cpe' => $connection->getTableName('catalog_product_entity')],
'`cpe`.`sku` = `tr`.`sku`', []
)
->joinInner(['ace' => $entitiesTable], '`ace`.`entity_id` = `cpe`.`entity_id`', [])
->where('`ace`.`import` = ?', 'product');
$connection->query($connection->updateFromSelect($uuids, ['tr' => $tempRelatedTable]));
}

$select = $connection->select()
->from(['tmp' => $tempRelatedTable], ["p.$columnIdentifier", 'p_sku.entity_id', 'link_type_id'])
->joinInner(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"nyholm/psr7": "^1.5"
},
"type": "magento2-module",
"version": "104.0.5",
"version": "104.0.6",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down

0 comments on commit 6003d33

Please sign in to comment.