Skip to content

Commit e892d45

Browse files
author
Viktor Sevch
committed
MC-35582: [Cloud] Backend not loading after authorization for 2.4.0-beta1
1 parent 420c7f5 commit e892d45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/AdminAnalytics/view/adminhtml/templates/notification.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<?php
1212
$isAnaliticsVisible = $block->getNotification()->isAnalyticsVisible() ? 1 : 0;
1313
$isReleaseVisible = $block->getNotification()->isReleaseVisible() ? 1 : 0;
14-
$scriptString = "
14+
$scriptString = <<<script
1515
define('analyticsPopupConfig', function () {
1616
return {
1717
analyticsVisible: {$isAnaliticsVisible},
1818
releaseVisible: {$isReleaseVisible},
1919
}
2020
});
21-
";
21+
script;
2222
?>
2323

2424
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false); ?>

app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ $numColumns = $block->getColumns() !== null ? count($block->getColumns()): 0;
188188
$scriptString .= 'deps.push(\'mage/adminhtml/grid\');' . PHP_EOL;
189189

190190
$scriptString .= '
191-
require(deps, function('. ($block->getDependencyJsObject() ? 'registry' : '') .'){' . PHP_EOL .'
192-
/* TODO: getJsObjectName and getRowClickCallback has unexpected behavior. Should be removed */' . PHP_EOL;
191+
require(deps, function('. ($block->getDependencyJsObject() ? 'registry' : '') .'){' . PHP_EOL;
192+
//TODO: getJsObjectName and getRowClickCallback has unexpected behavior. Should be removed
193193
if ($block->getDependencyJsObject()) {
194194
$scriptString .= 'registry.get(\'' . $block->escapeJs($block->getDependencyJsObject()) .
195195
'\', function ('. $block->escapeJs($block->getDependencyJsObject()) . ') {' . PHP_EOL;

0 commit comments

Comments
 (0)