Skip to content

Commit e53cfa1

Browse files
committed
MAGNIMEX-120: url key cleaning fix
1 parent 10ce965 commit e53cfa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Product/Plugin/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ protected function cleanOverriddenUrlKey()
289289
return $this;
290290
}
291291
$select = $this->connection->select()
292-
->from($this->urlKeyAttributeBackendTable, 'store_id, entity_id')
292+
->from($this->urlKeyAttributeBackendTable, ['store_id', 'entity_id'])
293293
->where('attribute_id = ?', $this->urlKeyAttributeId)
294294
->where(implode(' OR ', $this->entityStoresToCheckOverridden));
295295
$entityStoresToClean = $this->connection->fetchAll($select);

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Product/Plugin/ImportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public function testCleanOverriddenUrlKey()
616616
->method('from')
617617
->with(
618618
$urlKeyAttributeBackendTable,
619-
'store_id, entity_id'
619+
['store_id', 'entity_id']
620620
)
621621
->will($this->returnSelf());
622622
$this->select

0 commit comments

Comments
 (0)