Skip to content

Commit 81393b8

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-97210: Add Product by SKU to category causes the browser to hang
1 parent 2aa19a5 commit 81393b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ private function deleteOldUrls(array $urls): void
183183
$checkOldUrlsSelect = clone $oldUrlsSelect;
184184
$checkOldUrlsSelect->reset(Select::COLUMNS);
185185
$checkOldUrlsSelect->columns('count(*)');
186-
$hasOldUrls = (bool)$this->connection->fetchOne($checkOldUrlsSelect);
186+
$hasOldUrls = (bool)$this->connection->fetchOne($checkOldUrlsSelect);
187187

188-
if ($hasOldUrls) {
188+
if ($hasOldUrls) {
189189
$this->connection->query(
190190
$oldUrlsSelect->deleteFromSelect(
191191
$this->resource->getTableName(self::TABLE_NAME)

0 commit comments

Comments
 (0)