Skip to content

Commit a05803e

Browse files
Merge branch '2.4-develop' into feature/dependencies_into_constructor_pagecache
2 parents c1a8ead + 90ea3f1 commit a05803e

File tree

506 files changed

+16798
-3755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+16798
-3755
lines changed

app/code/Magento/AdvancedPricingImportExport/etc/module.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_AdvancedPricingImportExport" >
10-
</module>
9+
<module name="Magento_AdvancedPricingImportExport"/>
1110
</config>

app/code/Magento/Analytics/Model/Connector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(
5353
public function execute($commandName)
5454
{
5555
if (!array_key_exists($commandName, $this->commands)) {
56-
throw new NotFoundException(__('Command was not found.'));
56+
throw new NotFoundException(__('Command "%1" was not found.', $commandName));
5757
}
5858

5959
/** @var \Magento\Analytics\Model\Connector\CommandInterface $command */

app/code/Magento/Analytics/Test/Unit/Model/ConnectorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ public function testExecute()
5757
}
5858

5959
/**
60+
* Executing non-existing command
61+
*
6062
* @expectedException \Magento\Framework\Exception\NotFoundException
63+
* @expectedExceptionMessage Command "register" was not found.
64+
* @return void
6165
*/
62-
public function testExecuteCommandNotFound()
66+
public function testExecuteCommandNotFound(): void
6367
{
6468
$commandName = 'register';
6569
$this->connector->execute($commandName);

app/code/Magento/Analytics/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"There was an error save new configuration value.","There was an error save new configuration value."
88
"Please select an industry.","Please select an industry."
99
"--Please Select--","--Please Select--"
10-
"Command was not found.","Command was not found."
10+
"Command "%1" was not found.","Command "%1" was not found."
1111
"Input data must be string or convertible into string.","Input data must be string or convertible into string."
1212
"Input data must be non-empty string.","Input data must be non-empty string."
1313
"Not valid cipher method.","Not valid cipher method."

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ define(
1818
'Magento_Vault/js/view/payment/vault-enabler',
1919
'Magento_Braintree/js/view/payment/kount',
2020
'mage/translate',
21-
'prototype',
2221
'domReady!'
2322
],
2423
function (

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/paypal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ define([
269269
*/
270270
onError: function () {
271271
self.showError($t('Payment ' + self.getTitle() + ' can\'t be initialized'));
272+
self.reInitPayPal();
272273
}
273274
}, self.paypalButtonSelector);
274275
},

app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php

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

88
use Magento\Framework\Event\ObserverInterface;
99

10+
/**
11+
* Class adds bundle products into up-sell products collection
12+
*/
1013
class AppendUpsellProductsObserver implements ObserverInterface
1114
{
1215
/**
@@ -98,9 +101,15 @@ public function execute(\Magento\Framework\Event\Observer $observer)
98101
}
99102

100103
/* @var $bundleCollection \Magento\Catalog\Model\ResourceModel\Product\Collection */
101-
$bundleCollection = $product->getCollection()->addAttributeToSelect(
104+
$bundleCollection = $product->getCollection();
105+
$bundleCollection->addAttributeToSelect(
102106
$this->config->getProductAttributes()
103-
)->addStoreFilter()->addMinimalPrice()->addFinalPrice()->addTaxPercents()->setVisibility(
107+
);
108+
$bundleCollection->addStoreFilter();
109+
$bundleCollection->addMinimalPrice();
110+
$bundleCollection->addFinalPrice();
111+
$bundleCollection->addTaxPercents();
112+
$bundleCollection->setVisibility(
104113
$this->productVisibility->getVisibleInCatalogIds()
105114
);
106115

app/code/Magento/Bundle/Observer/InitOptionRendererObserver.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55
*/
66
namespace Magento\Bundle\Observer;
77

8+
use Magento\Bundle\Helper\Catalog\Product\Configuration;
9+
use Magento\Framework\Event\Observer;
810
use Magento\Framework\Event\ObserverInterface;
911

12+
/**
13+
* Initiates render options
14+
*/
1015
class InitOptionRendererObserver implements ObserverInterface
1116
{
1217
/**
1318
* Initialize product options renderer with bundle specific params
1419
*
15-
* @param \Magento\Framework\Event\Observer $observer
20+
* @param Observer $observer
1621
* @return $this
1722
*/
18-
public function execute(\Magento\Framework\Event\Observer $observer)
23+
public function execute(Observer $observer)
1924
{
2025
$block = $observer->getBlock();
21-
$block->addOptionsRenderCfg('bundle', \Magento\Bundle\Helper\Catalog\Product\Configuration::class);
26+
$block->addOptionsRenderCfg('bundle', Configuration::class);
2227
return $this;
2328
}
2429
}

0 commit comments

Comments
 (0)