Skip to content

Commit 32f43b7

Browse files
committed
ACP2E-1522: Auto increment number jumping up for catalog_product_entity_* tables
- Fixed the issue.
1 parent fd4a70e commit 32f43b7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,15 @@ protected function _insertAttribute($object, $attribute, $value)
325325
*/
326326
protected function _updateAttribute($object, $attribute, $valueId, $value)
327327
{
328-
return $this->_saveAttributeValue($object, $attribute, $value);
328+
$table = $attribute->getBackend()->getTable();
329+
$connection = $this->getConnection();
330+
$connection->update(
331+
$table,
332+
['value' => $this->_prepareValueForSave($value, $attribute)],
333+
sprintf('%s=%d', $connection->quoteIdentifier('value_id'), $valueId)
334+
);
335+
336+
return $this;
329337
}
330338

331339
/**

0 commit comments

Comments
 (0)