Skip to content

Commit 232bbad

Browse files
committed
MC-19623: Redundant entity values
1 parent 02c8624 commit 232bbad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,9 @@ private function clearSelectedOptionInEntities($object, $optionId)
496496

497497
if ($object->getBackendType() === 'varchar') {
498498
$where.= " AND FIND_IN_SET('$optionId',value)";
499-
$update['value'] = new \Zend_Db_Expr("TRIM(BOTH ',' FROM REPLACE(CONCAT(',',value,','),',$optionId,',','))");
499+
$update['value'] = new \Zend_Db_Expr(
500+
"TRIM(BOTH ',' FROM REPLACE(CONCAT(',',value,','),',$optionId,',','))"
501+
);
500502
} else {
501503
$where.= ' AND value = ' . $optionId;
502504
$update['value'] = null;

0 commit comments

Comments
 (0)