Skip to content

Commit c235307

Browse files
author
Oleksandr Gorkun
committed
Merge branch '2.4.0-develop' of https://github.com/magento/magento2ce into MC-35064
2 parents 74727b2 + a1587ae commit c235307

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

app/code/Magento/Ups/view/adminhtml/templates/system/shipping/carrier_config.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ $scriptString .= <<<script
156156
setFormValues: function()
157157
{
158158
var a;
159-
if ($(this.carriersUpsTypeId) == 'UPS') {
159+
if (\$F(this.carriersUpsTypeId) == 'UPS') {
160160
for (a = 0; a < this.checkingUpsXmlId.length; a++) {
161161
$(this.checkingUpsXmlId[a]).removeClassName('required-entry');
162162
}
@@ -184,13 +184,13 @@ $scriptString .= <<<script
184184
},
185185
changeOriginShipment: function(Event, key)
186186
{
187-
this.originShipmentTitle = key ? key : $('carriers_ups_origin_shipment');
187+
this.originShipmentTitle = key ? key : \$F('carriers_ups_origin_shipment');
188188
this.updateAllowedMethods(this.originShipmentTitle);
189189
},
190190
changeFieldsDisabledState: function (fields, key) {
191-
$(fields[key]).disabled = $(this.carriersUpsActiveId) !== '1'
191+
$(fields[key]).disabled = \$F(this.carriersUpsActiveId) !== '1'
192192
|| $(fields[key] + '_inherit') !== null
193-
&& $(fields[key] + '_inherit') === '1';
193+
&& \$F(fields[key] + '_inherit') === '1';
194194
195195
if ($(fields[key]).next() !== undefined) {
196196
$(fields[key]).removeClassName('mage-error').next().remove();

setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Magento\Framework\App\State as AppState;
1010
use Magento\Framework\App\DeploymentConfig;
1111
use Magento\Framework\App\ObjectManager;
12+
use Magento\Framework\Config\CacheInterface;
1213
use Magento\Framework\Setup\ConsoleLogger;
1314
use Magento\Framework\Setup\Declaration\Schema\DryRunLogger;
1415
use Magento\Framework\Setup\Declaration\Schema\OperationsExecutor;
@@ -52,22 +53,30 @@ class UpgradeCommand extends AbstractSetupCommand
5253
*/
5354
private $searchConfigFactory;
5455

56+
/*
57+
* @var CacheInterface
58+
*/
59+
private $cache;
60+
5561
/**
5662
* @param InstallerFactory $installerFactory
5763
* @param SearchConfigFactory $searchConfigFactory
5864
* @param DeploymentConfig $deploymentConfig
5965
* @param AppState|null $appState
66+
* @param CacheInterface|null $cache
6067
*/
6168
public function __construct(
6269
InstallerFactory $installerFactory,
6370
SearchConfigFactory $searchConfigFactory,
6471
DeploymentConfig $deploymentConfig = null,
65-
AppState $appState = null
72+
AppState $appState = null,
73+
CacheInterface $cache = null
6674
) {
6775
$this->installerFactory = $installerFactory;
6876
$this->searchConfigFactory = $searchConfigFactory;
6977
$this->deploymentConfig = $deploymentConfig ?: ObjectManager::getInstance()->get(DeploymentConfig::class);
7078
$this->appState = $appState ?: ObjectManager::getInstance()->get(AppState::class);
79+
$this->cache = $cache ?: ObjectManager::getInstance()->get(CacheInterface::class);
7180
parent::__construct();
7281
}
7382

@@ -129,6 +138,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
129138
$installer = $this->installerFactory->create(new ConsoleLogger($output));
130139
$installer->updateModulesSequence($keepGenerated);
131140
$searchConfig = $this->searchConfigFactory->create();
141+
$this->cache->clean();
132142
$searchConfig->validateSearchEngine();
133143
$installer->installSchema($request);
134144
$installer->installDataFixtures($request);

0 commit comments

Comments
 (0)