Skip to content

Commit 3bd35a4

Browse files
author
Sergey Semenov
committed
MAGETWO-60258: [Magento Cloud] - Product position set in the admin is not honored in the category when seen in the Frontend
1 parent a02b063 commit 3bd35a4

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77

88
class Full extends \Magento\Catalog\Model\Indexer\Category\Product\AbstractAction
99
{
10-
/**
11-
* Whether to use main or temporary index table
12-
*
13-
* The value of useTempTable flag set to TRUE to force using of
14-
* catalog_category_product_index_tmp table to avoid performance lag
15-
* and DB locks while rebuilding catalog_category_product_index table.
16-
*
17-
* @var bool
18-
*/
19-
protected $useTempTable = true;
20-
2110
/**
2211
* Refresh entities index
2312
*

app/code/Magento/Catalog/Setup/UpgradeSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
6666
}
6767

6868
if (version_compare($context->getVersion(), '2.1.4', '<')) {
69-
$this->resetCatalogCategoryProductIndexTmpTable($setup);
69+
$this->recreateCatalogCategoryProductIndexTmpTable($setup);
7070
}
7171

7272
$setup->endSetup();
@@ -393,7 +393,7 @@ private function addPercentageValueColumn(SchemaSetupInterface $setup)
393393
* @param SchemaSetupInterface $setup
394394
* @return void
395395
*/
396-
private function resetCatalogCategoryProductIndexTmpTable(SchemaSetupInterface $setup)
396+
private function recreateCatalogCategoryProductIndexTmpTable(SchemaSetupInterface $setup)
397397
{
398398
$tableName = $setup->getTable('catalog_category_product_index_tmp');
399399

0 commit comments

Comments
 (0)