Skip to content

Commit 2b9033f

Browse files
author
Magento CICD
authored
merge magento/2.2-develop into magento-borg/DEVOPS-2174-2.2
2 parents 9dde1a0 + 4bffc3a commit 2b9033f

File tree

6 files changed

+61
-22
lines changed

6 files changed

+61
-22
lines changed

app/code/Magento/Backend/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
121121
</field>
122122
<field id="template_hints_blocks" translate="label" type="select" sortOrder="21" showInDefault="1" showInWebsite="1" showInStore="1">
123-
<label>Add Block Names to Hints</label>
123+
<label>Add Block Class Type to Hints</label>
124124
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
125125
</field>
126126
</group>

app/code/Magento/Catalog/Model/Indexer/Category/Product/AbstractAction.php

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -656,25 +656,43 @@ protected function makeTempCategoryTreeIndex()
656656
*/
657657
protected function fillTempCategoryTreeIndex($temporaryName)
658658
{
659-
// This finds all children (cc2) that descend from a parent (cc) by path.
660-
// For example, cc.path may be '1/2', and cc2.path may be '1/2/3/4/5'.
661-
$temporarySelect = $this->connection->select()->from(
662-
['cc' => $this->getTable('catalog_category_entity')],
663-
['parent_id' => 'entity_id']
664-
)->joinInner(
665-
['cc2' => $this->getTable('catalog_category_entity')],
666-
'cc2.path LIKE ' . $this->connection->getConcatSql(
667-
[$this->connection->quoteIdentifier('cc.path'), $this->connection->quote('/%')]
668-
),
669-
['child_id' => 'entity_id']
670-
);
659+
$offset = 0;
660+
$limit = 500;
671661

672-
$this->connection->query(
673-
$temporarySelect->insertFromSelect(
674-
$temporaryName,
675-
['parent_id', 'child_id']
676-
)
677-
);
662+
$categoryTable = $this->getTable('catalog_category_entity');
663+
664+
$categoriesSelect = $this->connection->select()
665+
->from(
666+
['c' => $categoryTable],
667+
['entity_id', 'path']
668+
)->limit($limit, $offset);
669+
670+
$categories = $this->connection->fetchAll($categoriesSelect);
671+
672+
while ($categories) {
673+
$values = [];
674+
675+
foreach ($categories as $category) {
676+
foreach (explode('/', $category['path']) as $parentId) {
677+
if ($parentId !== $category['entity_id']) {
678+
$values[] = [$parentId, $category['entity_id']];
679+
}
680+
}
681+
}
682+
683+
if (count($values) > 0) {
684+
$this->connection->insertArray($temporaryName, ['parent_id', 'child_id'], $values);
685+
}
686+
687+
$offset += $limit;
688+
$categoriesSelect = $this->connection->select()
689+
->from(
690+
['c' => $categoryTable],
691+
['entity_id', 'path']
692+
)->limit($limit, $offset);
693+
694+
$categories = $this->connection->fetchAll($categoriesSelect);
695+
}
678696
}
679697

680698
/**

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ define([
105105
self._showItemButton($(event.target));
106106
};
107107

108+
/**
109+
* @param {jQuery.Event} event
110+
*/
111+
events['change ' + this.options.item.qty] = function (event) {
112+
self._showItemButton($(event.target));
113+
};
114+
108115
/**
109116
* @param {jQuery.Event} event
110117
*/

app/code/Magento/Customer/view/frontend/templates/account/dashboard/info.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<?= $block->escapeHtml($block->getName()) ?><br>
2121
<?= $block->escapeHtml($block->getCustomer()->getEmail()) ?><br>
2222
</p>
23+
<?= $block->getChildHtml('customer.account.dashboard.info.extra'); ?>
2324
</div>
2425
<div class="box-actions">
2526
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('customer/account/edit')) ?>">
@@ -43,8 +44,6 @@
4344
<?= $block->escapeHtml(__('You aren\'t subscribed to our newsletter.')) ?>
4445
<?php endif; ?>
4546
</p>
46-
<?php /* Extensions placeholder */ ?>
47-
<?= $block->getChildHtml('customer.account.dashboard.info.extra') ?>
4847
</div>
4948
<div class="box-actions">
5049
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('newsletter/manage')) ?>"><span><?= $block->escapeHtml(__('Edit')) ?></span></a>

app/design/frontend/Magento/luma/Magento_Theme/web/css/source/_module.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@
528528

529529
.header.links {
530530
min-width: 175px;
531+
z-index: 1000;
531532
}
532533

533534
&.active {

lib/web/mage/requirejs/resolver.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,28 @@ define([
2727
return !!_.findWhere(callbacks, callback);
2828
}
2929

30+
/**
31+
* Checks if provided module is rejected during load.
32+
*
33+
* @param {Object} module - Module to be checked.
34+
* @return {Boolean}
35+
*/
36+
function isRejected(module) {
37+
return registry[module.id] && registry[module.id].error;
38+
}
39+
3040
/**
3141
* Checks if provided module has unresolved dependencies.
3242
*
3343
* @param {Object} module - Module to be checked.
3444
* @returns {Boolean}
3545
*/
3646
function isPending(module) {
37-
return !!module.depCount;
47+
if (!module.depCount) {
48+
return false;
49+
}
50+
51+
return module.depCount > _.filter(module.depMaps, isRejected).length;
3852
}
3953

4054
/**

0 commit comments

Comments
 (0)