Skip to content

Commit 4f45d96

Browse files
committed
ACP2E-1522: Auto increment number jumping up for catalog_product_entity_* tables
- Fixed the build failure.
1 parent 6d719fd commit 4f45d96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ protected function _insertAttribute($object, $attribute, $value)
325325
*/
326326
protected function _updateAttribute($object, $attribute, $valueId, $value)
327327
{
328-
if ($valueId > 0) {
328+
$entity = $attribute->getEntity();
329+
$row = $this->getAttributeRow($entity, $object, $attribute);
330+
if ($valueId > 0 && array_key_exists('store_id', $row)) {
329331
$table = $attribute->getBackend()->getTable();
330332
$connection = $this->getConnection();
331333
$connection->update(

0 commit comments

Comments
 (0)