Skip to content

Commit

Permalink
fix(TEN-835): prevent setting default attribute values on product tha…
Browse files Browse the repository at this point in the history
…t exist
  • Loading branch information
wimvdputten committed Oct 14, 2024
1 parent 1583158 commit 976aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rewrite/ImportExport/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ protected function _saveProducts()

$rowData = $productTypeModel->prepareAttributesWithDefaultValueForSave(
$rowData,
$this->isSkuExist($rowSku)
!$this->isSkuExist($rowSku)
);
$product = $this->_proxyProdFactory->create(['data' => $rowData]);

Expand Down

0 comments on commit 976aad9

Please sign in to comment.