Skip to content

Commit 6e5a195

Browse files
author
Dale Sikkema
committed
Merge branch 'MAGETWO-23679-product-file-opt' into ext-s51
Conflicts: composer.lock
2 parents 59f994f + feb3e66 commit 6e5a195

File tree

1,330 files changed

+41894
-24222
lines changed

Some content is hidden

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

1,330 files changed

+41894
-24222
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
0.74.0-beta7
2+
=============
3+
* Framework improvements
4+
* Exceptions are caught and logged before reaching the Phrase::__toString() method
5+
* Refactored controller actions in the Checkout area
6+
* Refactored controller actions in the Tax area
7+
* Implemented new look & feel for the Edit Order page (View/Edit Order)
8+
* Replaced the end-to-end test for Onepage Checkout with online shipment methods with the scenario test
9+
* Fixed bugs
10+
* Fixed an issue where a success message was absent when adding a product with options from Wishlist to Shopping Cart
11+
* Fixed an issue where an exception was thrown when trying to sort Customer Groups by Tax Class
12+
* Fixed an issue where the background color changed to the “on focus” state when clicking the Admin Menu logo
13+
* Fixed an issue with Mini Shopping Cart containing extra empty space
14+
* GitHub issues
15+
* [#1173] (https://github.com/magento/magento2/pull/1173) -- Change to HttpClient4 from Java client; fix regex issues
16+
* [#1185] (https://github.com/magento/magento2/pull/1185) -- Error message for duplicated phrases not allowed in Generator.php
17+
* [#1199] (https://github.com/magento/magento2/pull/1199) -- Add Event for sales_order_state_change_before during Order->saveState()
18+
* [#1201] (https://github.com/magento/magento2/pull/1101) -- Add customer_validate event
19+
* [#1202] (https://github.com/magento/magento2/pull/1102) -- Email sending events
20+
121
0.74.0-beta6
222
=============
323
* Framework improvements

app/code/Magento/AdminNotification/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta6",
7-
"magento/module-backend": "0.74.0-beta6",
8-
"magento/module-media-storage": "0.74.0-beta6",
9-
"magento/framework": "0.74.0-beta6",
6+
"magento/module-store": "0.74.0-beta7",
7+
"magento/module-backend": "0.74.0-beta7",
8+
"magento/module-media-storage": "0.74.0-beta7",
9+
"magento/framework": "0.74.0-beta7",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.74.0-beta6",
14+
"version": "0.74.0-beta7",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

app/code/Magento/AdminNotification/view/adminhtml/templates/toolbar_entry.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
?>
1515
<div
1616
data-mage-init='{"toolbarEntry": {}}'
17-
class="notifications-wrapper"
17+
class="notifications-wrapper admin__action-dropdown-wrap"
1818
data-notification-count="<?php echo $notificationCount; ?>">
1919
<?php if ($notificationCount > 0) : ?>
2020
<a
2121
href="<?php echo $block->getUrl('adminhtml/notification/index'); ?>"
22-
class="notifications-action"
22+
class="notifications-action admin__action-dropdown"
2323
data-mage-init='{"dropdown":{}}'
2424
title="<?php echo __('Notifications'); ?>"
2525
data-toggle="dropdown">
@@ -28,7 +28,7 @@
2828
</span>
2929
</a>
3030
<ul
31-
class="notifications-list"
31+
class="admin__action-dropdown-menu"
3232
data-mark-as-read-url="<?php echo $block->getUrl('adminhtml/notification/ajaxMarkAsRead'); ?>">
3333
<?php foreach ($block->getLatestUnreadNotifications() as $notification) : ?>
3434
<?php /** @var $notification \Magento\AdminNotification\Model\Inbox*/ ?>
@@ -76,7 +76,7 @@
7676
</ul>
7777
<?php else : ?>
7878
<a
79-
class="notifications-action"
79+
class="notifications-action admin__action-dropdown"
8080
href="<?php echo $block->getUrl('adminhtml/notification/index'); ?>"
8181
title="<?php echo __('Notifications'); ?>">
8282
</a>

app/code/Magento/AdminNotification/view/adminhtml/web/toolbar_entry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define([
1111

1212
// Mark notification as read via AJAX call
1313
var markNotificationAsRead = function (notificationId) {
14-
var requestUrl = $('.notifications-wrapper .notifications-list').attr('data-mark-as-read-url');
14+
var requestUrl = $('.notifications-wrapper .admin__action-dropdown-menu').attr('data-mark-as-read-url');
1515
$.ajax({
1616
url: requestUrl,
1717
type: 'POST',
@@ -33,7 +33,7 @@ define([
3333

3434
if (notificationCount == 0) {
3535
// Change appearance of the bubble and its behavior when the last notification is removed
36-
$('.notifications-wrapper .notifications-list').remove();
36+
$('.notifications-wrapper .admin__action-dropdown-menu').remove();
3737
var notificationIcon = $('.notifications-wrapper .notifications-icon');
3838
notificationIcon.removeAttr('data-toggle');
3939
notificationIcon.off('click.dropdown');
@@ -45,7 +45,7 @@ define([
4545
}
4646
$('.notifications-entry-last .notifications-counter').text(notificationCount);
4747
// Modify caption of the 'See All' link
48-
var actionElement = $('.notifications-wrapper .notifications-list .last .action-more');
48+
var actionElement = $('.notifications-wrapper .admin__action-dropdown-menu .last .action-more');
4949
actionElement.text(actionElement.text().replace(/\d+/, notificationCount));
5050
}
5151
},
@@ -65,7 +65,7 @@ define([
6565
};
6666

6767
// Show notification description when corresponding item is clicked
68-
$('.notifications-wrapper .notifications-list .notifications-entry').on('click.showNotification', function (event) {
68+
$('.notifications-wrapper .admin__action-dropdown-menu .notifications-entry').on('click.showNotification', function (event) {
6969
// hide notification dropdown
7070
$('.notifications-wrapper .notifications-icon').trigger('click.dropdown');
7171

app/code/Magento/Authorization/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Authorization module provides access to Magento ACL functionality.",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-backend": "0.74.0-beta6",
7-
"magento/framework": "0.74.0-beta6",
6+
"magento/module-backend": "0.74.0-beta7",
7+
"magento/framework": "0.74.0-beta7",
88
"magento/magento-composer-installer": "*"
99
},
1010
"type": "magento2-module",
11-
"version": "0.74.0-beta6",
11+
"version": "0.74.0-beta7",
1212
"license": [
1313
"OSL-3.0",
1414
"AFL-3.0"

app/code/Magento/Backend/App/Action/Context.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\Backend\App\Action;
77

8+
use Magento\Framework\Controller\ResultFactory;
9+
810
/**
911
* Backend Controller context
1012
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -62,6 +64,7 @@ class Context extends \Magento\Framework\App\Action\Context
6264
* @param \Magento\Framework\App\ViewInterface $view
6365
* @param \Magento\Framework\Message\ManagerInterface $messageManager
6466
* @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
67+
* @param \Magento\Framework\Controller\ResultFactory $resultFactory
6568
* @param \Magento\Backend\Model\Session $session
6669
* @param \Magento\Framework\AuthorizationInterface $authorization
6770
* @param \Magento\Backend\Model\Auth $auth
@@ -83,6 +86,7 @@ public function __construct(
8386
\Magento\Framework\App\ViewInterface $view,
8487
\Magento\Framework\Message\ManagerInterface $messageManager,
8588
\Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory,
89+
ResultFactory $resultFactory,
8690
\Magento\Backend\Model\Session $session,
8791
\Magento\Framework\AuthorizationInterface $authorization,
8892
\Magento\Backend\Model\Auth $auth,
@@ -102,7 +106,8 @@ public function __construct(
102106
$actionFlag,
103107
$view,
104108
$messageManager,
105-
$resultRedirectFactory
109+
$resultRedirectFactory,
110+
$resultFactory
106111
);
107112

108113
$this->_session = $session;

app/code/Magento/Backend/App/Config.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
namespace Magento\Backend\App;
1212

13+
use Magento\Framework\App\Config\ScopeConfigInterface;
14+
1315
/**
1416
* Backend config accessor
1517
*/
@@ -36,7 +38,7 @@ public function __construct(\Magento\Framework\App\Config\ScopePool $scopePool)
3638
*/
3739
public function getValue($path)
3840
{
39-
return $this->_scopePool->getScope(\Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT, null)->getValue($path);
41+
return $this->_scopePool->getScope(ScopeConfigInterface::SCOPE_TYPE_DEFAULT, null)->getValue($path);
4042
}
4143

4244
/**
@@ -48,7 +50,7 @@ public function getValue($path)
4850
*/
4951
public function setValue($path, $value)
5052
{
51-
$this->_scopePool->getScope(\Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT, null)->setValue($path, $value);
53+
$this->_scopePool->getScope(ScopeConfigInterface::SCOPE_TYPE_DEFAULT, null)->setValue($path, $value);
5254
}
5355

5456
/**
@@ -59,6 +61,6 @@ public function setValue($path, $value)
5961
*/
6062
public function isSetFlag($path)
6163
{
62-
return !!$this->_scopePool->getScope(\Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT, null)->getValue($path);
64+
return !!$this->_scopePool->getScope(ScopeConfigInterface::SCOPE_TYPE_DEFAULT, null)->getValue($path);
6365
}
6466
}

app/code/Magento/Backend/Block/Menu.php

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ protected function _addSubMenu($menuItem, $level, $limit, $id = null)
419419
if ($level == 0 && $limit) {
420420
$colStops = $this->_columnBrake($menuItem->getChildren(), $limit);
421421
$output .= '<strong class="submenu-title">' . $this->_getAnchorLabel($menuItem) . '</strong>';
422-
$output .= '<a href="#" class="submenu-close _close" data-role="close-submenu"></a>';
422+
$output .= '<a href="#" class="action-close _close" data-role="close-submenu"></a>';
423423
}
424424

425425
$output .= $this->renderNavigation($menuItem->getChildren(), $level + 1, $limit, $colStops);
@@ -436,6 +436,7 @@ protected function _addSubMenu($menuItem, $level, $limit, $id = null)
436436
* @param array $colBrakes
437437
* @return string HTML
438438
* @SuppressWarnings(PHPMD.NPathComplexity)
439+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
439440
*/
440441
public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
441442
{
@@ -454,21 +455,30 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
454455
}
455456

456457
$id = $this->getJsId($menuItem->getId());
457-
$output .= '<li ' . $this->getUiId(
458-
$menuItem->getId()
459-
) . ' class="item-' . $itemClass . ' ' . $this->_renderItemCssClass(
460-
$menuItem,
461-
$level
462-
) . ($level == 0 ? '" id="' . $id . '" aria-haspopup="true' : '')
463-
. '" role="menu-item">' . $this->_renderAnchor(
464-
$menuItem,
465-
$level
466-
) . $this->_addSubMenu(
467-
$menuItem,
468-
$level,
469-
$limit,
470-
$id
471-
) . '</li>';
458+
if (count($menu) > 1 || $level != 1) {
459+
$output .= '<li ' . $this->getUiId(
460+
$menuItem->getId()
461+
) . ' class="item-' . $itemClass . ' ' . $this->_renderItemCssClass(
462+
$menuItem,
463+
$level
464+
) . ($level == 0 ? '" id="' . $id . '" aria-haspopup="true' : '')
465+
. '" role="menu-item">' . $this->_renderAnchor(
466+
$menuItem,
467+
$level
468+
) . $this->_addSubMenu(
469+
$menuItem,
470+
$level,
471+
$limit,
472+
$id
473+
) . '</li>';
474+
} else {
475+
$output .= $this->_addSubMenu(
476+
$menuItem,
477+
$level,
478+
$limit,
479+
$id);
480+
}
481+
472482
$itemPosition++;
473483
}
474484

app/code/Magento/Backend/Block/Page/System/Config/Robots/Reset.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
namespace Magento\Backend\Block\Page\System\Config\Robots;
1010

11+
use Magento\Framework\App\Config\ScopeConfigInterface;
12+
1113
/**
1214
* "Reset to Defaults" button renderer
1315
*
@@ -50,7 +52,7 @@ protected function _construct()
5052
public function getRobotsDefaultCustomInstructions()
5153
{
5254
return trim((string)$this->_scopeConfig->getValue(
53-
self::XML_PATH_ROBOTS_DEFAULT_CUSTOM_INSTRUCTIONS, \Magento\Framework\App\ScopeInterface::SCOPE_DEFAULT
55+
self::XML_PATH_ROBOTS_DEFAULT_CUSTOM_INSTRUCTIONS, ScopeConfigInterface::SCOPE_TYPE_DEFAULT
5456
));
5557
}
5658

app/code/Magento/Backend/Block/Widget/Grid.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ protected function _preparePage()
391391
*/
392392
protected function _prepareGrid()
393393
{
394+
$this->_eventManager->dispatch(
395+
'backend_block_widget_grid_prepare_grid_before',
396+
['grid' => $this, 'collection' => $this->getCollection()]
397+
);
394398
if ($this->getChildBlock('grid.massaction') && $this->getChildBlock('grid.massaction')->isAvailable()) {
395399
$this->getChildBlock('grid.massaction')->prepareMassactionColumn();
396400
}
@@ -433,6 +437,10 @@ protected function _prepareFilterButtons()
433437
'Magento\Backend\Block\Widget\Button'
434438
)->setData(
435439
['label' => __('Reset Filter'), 'onclick' => $this->getJsObjectName() . '.resetFilter()', 'class' => 'action-reset']
440+
)->setDataAttribute(
441+
[
442+
'action' => 'grid-filter-reset'
443+
]
436444
)
437445
);
438446
$this->setChild(
@@ -445,6 +453,10 @@ protected function _prepareFilterButtons()
445453
'onclick' => $this->getJsObjectName() . '.doFilter()',
446454
'class' => 'task',
447455
]
456+
)->setDataAttribute(
457+
[
458+
'action' => 'grid-filter-apply'
459+
]
448460
)
449461
);
450462
}

0 commit comments

Comments
 (0)