Skip to content

Commit e72b563

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #16667: [Backport] Improve retrieval of first array element (by @mageprince) - #16671: [Backport] Removed unused class from forms less file. (by @mageprince) - #16665: [Backport] 7399-clickableOverlay-less-fix - added pointer-events rule to .modal-� (by @mageprince) - #16643: [Backport] Variable as a method parameter might be overridden by the loop (by @lfluvisotto) - #16601: [2.1-develop][BackPort] Fixed backwards incompatible change to Transport variable event parameters (by @gwharton) - #16634: [Backport] Updated SynonymGroup.xml (by @sanganinamrata) - #16493: [Backport] Prevent layout cache corruption in edge case (by @gelanivishal) Fixed GitHub Issues: - #7399: Modal UI: clickableOverlay option doesn't work (reported by @thdoan) has been fixed in #16665 by @mageprince in 2.1-develop branch Related commits: 1. 4c53caf - #10210: Transport variable can not be altered in email_invoice_set_template_vars_before Event (reported by @diybook) has been fixed in #16601 by @gwharton in 2.1-develop branch Related commits: 1. 390fc2f
2 parents b5f47a1 + 6c1ca8d commit e72b563

File tree

9 files changed

+29
-21
lines changed

9 files changed

+29
-21
lines changed

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,12 +497,12 @@ public function updateQtyOption($options, \Magento\Framework\DataObject $option,
497497

498498
foreach ($selections as $selection) {
499499
if ($selection->getProductId() == $optionProduct->getId()) {
500-
foreach ($options as &$option) {
501-
if ($option->getCode() == 'selection_qty_' . $selection->getSelectionId()) {
500+
foreach ($options as $quoteItemOption) {
501+
if ($quoteItemOption->getCode() == 'selection_qty_' . $selection->getSelectionId()) {
502502
if ($optionUpdateFlag) {
503-
$option->setValue(intval($option->getValue()));
503+
$quoteItemOption->setValue(intval($quoteItemOption->getValue()));
504504
} else {
505-
$option->setValue($value);
505+
$quoteItemOption->setValue($value);
506506
}
507507
}
508508
}

app/code/Magento/Rule/Model/Action/AbstractAction.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ public function __construct(
4646

4747
$this->loadAttributeOptions()->loadOperatorOptions()->loadValueOptions();
4848

49-
foreach (array_keys($this->getAttributeOption()) as $attr) {
50-
$this->setAttribute($attr);
51-
break;
49+
$attributes = $this->getAttributeOption();
50+
if ($attributes) {
51+
reset($attributes);
52+
$this->setAttribute(key($attributes));
5253
}
53-
foreach (array_keys($this->getOperatorOption()) as $operator) {
54-
$this->setOperator($operator);
55-
break;
54+
55+
$operators = $this->getOperatorOption();
56+
if ($operators) {
57+
reset($operators);
58+
$this->setOperator(key($operators));
5659
}
5760
}
5861

app/code/Magento/Rule/Model/Condition/Combine.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ public function __construct(Context $context, array $data = [])
4242
$this->loadAggregatorOptions();
4343
$options = $this->getAggregatorOptions();
4444
if ($options) {
45-
foreach (array_keys($options) as $aggregator) {
46-
$this->setAggregator($aggregator);
47-
break;
48-
}
45+
reset($options);
46+
$this->setAggregator(key($options));
4947
}
5048
}
5149

5250
/* start aggregator methods */
51+
5352
/**
5453
* @return $this
5554
*/
@@ -85,9 +84,10 @@ public function getAggregatorName()
8584
public function getAggregatorElement()
8685
{
8786
if ($this->getAggregator() === null) {
88-
foreach (array_keys($this->getAggregatorOption()) as $key) {
89-
$this->setAggregator($key);
90-
break;
87+
$options = $this->getAggregatorOption();
88+
if ($options) {
89+
reset($options);
90+
$this->setAggregator(key($options));
9191
}
9292
}
9393
return $this->getForm()->addField(

app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function prepareTemplate(Order $order)
135135
*/
136136
$this->eventManager->dispatch(
137137
'email_order_set_template_vars_before',
138-
['sender' => $this, 'transport' => $transportObject->getData(), 'transportObject' => $transportObject]
138+
['sender' => $this, 'transport' => $transportObject, 'transportObject' => $transportObject]
139139
);
140140

141141
$this->templateContainer->setTemplateVars($transportObject->getData());

app/design/frontend/Magento/blank/web/css/source/components/_modals_extend.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
}
6565

6666
.modal-popup {
67+
pointer-events: none;
68+
6769
.modal-title {
6870
.lib-css(border-bottom, @modal-title__border);
6971
.lib-css(font-weight, @font-weight__light);

app/design/frontend/Magento/luma/web/css/source/components/_modals_extend.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
}
6565

6666
.modal-popup {
67+
pointer-events: none;
68+
6769
.modal-title {
6870
.lib-css(border-bottom, @modal-title__border);
6971
.lib-css(font-weight, @font-weight__light);

dev/tests/functional/tests/app/Magento/Search/Test/Fixture/SynonymGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
collection="Magento\Search\Model\ResourceModel\Block\Grid\Collection"
1414
handler_interface="Magento\Search\Test\Handler\SynonymGroup\SynonymGroupInterface"
1515
repository_class="Magento\Search\Test\Repository\SynonymGroup" class="Magento\Search\Test\Fixture\SynonymGroup">
16-
<field name="group_id" is_required="1 "/>
16+
<field name="group_id" is_required="1"/>
1717
<field name="synonyms" is_required="0" />
1818
<field name="scope_id" is_required="0" source="Magento\Search\Test\Fixture\SynonymGroup\ScopeId" />
1919
<field name="mergeOnConflict" is_required="0" />

lib/internal/Magento/Framework/View/Model/Layout/Merge.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ public function load($handles = [])
427427
if ($result) {
428428
$this->addUpdate($result);
429429
$this->pageLayout = $this->_loadCache($cacheIdPageLayout);
430+
foreach ($this->getHandles() as $handle) {
431+
$this->allHandles[$handle] = $this->handleProcessed;
432+
}
430433
return $this;
431434
}
432435

lib/web/css/source/lib/_forms.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,9 @@
465465
.lib-css(margin, @_margin);
466466
.lib-css(padding, @_padding);
467467
letter-spacing: -.31em;
468-
//word-spacing: -.43em;
469468

470469
> * {
471470
letter-spacing: normal;
472-
//word-spacing: normal;
473471
}
474472

475473
> .legend {

0 commit comments

Comments
 (0)