Skip to content

Commit 38cbb58

Browse files
committed
Merge branch 'develop' of github.corp.ebay.com:magento2/magento2ce into MAGETWO-36037
2 parents 9c5adc0 + fcb6af8 commit 38cbb58

File tree

397 files changed

+11397
-4621
lines changed

Some content is hidden

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

397 files changed

+11397
-4621
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
0.74.0-beta6
2+
=============
3+
* Framework improvements
4+
* Implemented a default exception handler for blocks
5+
* Updated the root composer.json file
6+
* Updated the setup tool to support different editions
7+
* Added an ability to operate with Sales & Checkout APIs as guests and registered users
8+
* Implemented the additional Sales & Checkout APIs for registered customers and guests
9+
* Added unit tests to cover Sales & Checkout services code
10+
* Various
11+
* Standardized the hierarchy of exceptions
12+
* Added bundle product API integration to Catalog
13+
* Fixed bugs
14+
* Fixed an issue where it was impossible to place an order using multiple address checkout
15+
* Fixed an issue where DB timestamp columns with current_timestamp on update were not handled correctly
16+
* Fixed an issue with FPT in partial invoices
17+
* Fixed a performance issue in benchmark test
18+
* Fixed the incorrect Exception class in the Magento_CurrencySymbol module
19+
* Fixed an issue by letting MySQL determine a database table type instead of MyISAM
20+
* Fixed an issue where test failures occurred when the database and the application were in different time zones
21+
* Fixed an issue where \Magento\Framework\Phrase omitted placeholder values if no renderer was set
22+
123
0.74.0-beta5
224
=============
325
* Various

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-beta5",
7-
"magento/module-backend": "0.74.0-beta5",
8-
"magento/module-media-storage": "0.74.0-beta5",
9-
"magento/framework": "0.74.0-beta5",
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",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.74.0-beta5",
14+
"version": "0.74.0-beta6",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

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-beta5",
7-
"magento/framework": "0.74.0-beta5",
6+
"magento/module-backend": "0.74.0-beta6",
7+
"magento/framework": "0.74.0-beta6",
88
"magento/magento-composer-installer": "*"
99
},
1010
"type": "magento2-module",
11-
"version": "0.74.0-beta5",
11+
"version": "0.74.0-beta6",
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/Block/Widget/Grid/Column/Filter/Datetime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getHtml()
104104
$html =
105105
'<div class="range" id="' . $htmlId . '_range"><div class="range-line date">' . '<input type="text" name="'
106106
. $this->_getHtmlName() . '[from]" id="' . $htmlId . '_from"' . ' value="' . $this->getEscapedValue('from')
107-
. '" class="input-text no-changes" placeholder="' . __(
107+
. '" class="input-text admin__control-text no-changes" placeholder="' . __(
108108
'From'
109109
) . '" ' . $this->getUiId(
110110
'filter',
@@ -114,7 +114,7 @@ public function getHtml()
114114
$html .= '<div class="range-line date">' . '<input type="text" name="' . $this->_getHtmlName() . '[to]" id="'
115115
. $htmlId . '_to"' . ' value="' . $this->getEscapedValue(
116116
'to'
117-
) . '" class="input-text no-changes" placeholder="' . __(
117+
) . '" class="input-text admin__control-text no-changes" placeholder="' . __(
118118
'To'
119119
) . '" ' . $this->getUiId(
120120
'filter',

app/code/Magento/Backend/composer.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta5",
7-
"magento/module-directory": "0.74.0-beta5",
8-
"magento/module-developer": "0.74.0-beta5",
9-
"magento/module-eav": "0.74.0-beta5",
10-
"magento/module-cron": "0.74.0-beta5",
11-
"magento/module-theme": "0.74.0-beta5",
12-
"magento/module-reports": "0.74.0-beta5",
13-
"magento/module-sales": "0.74.0-beta5",
14-
"magento/module-quote": "0.74.0-beta5",
15-
"magento/module-catalog": "0.74.0-beta5",
16-
"magento/module-user": "0.74.0-beta5",
17-
"magento/module-backup": "0.74.0-beta5",
18-
"magento/module-customer": "0.74.0-beta5",
19-
"magento/module-translation": "0.74.0-beta5",
20-
"magento/module-require-js": "0.74.0-beta5",
21-
"magento/module-config": "0.74.0-beta5",
22-
"magento/framework": "0.74.0-beta5",
6+
"magento/module-store": "0.74.0-beta6",
7+
"magento/module-directory": "0.74.0-beta6",
8+
"magento/module-developer": "0.74.0-beta6",
9+
"magento/module-eav": "0.74.0-beta6",
10+
"magento/module-cron": "0.74.0-beta6",
11+
"magento/module-theme": "0.74.0-beta6",
12+
"magento/module-reports": "0.74.0-beta6",
13+
"magento/module-sales": "0.74.0-beta6",
14+
"magento/module-quote": "0.74.0-beta6",
15+
"magento/module-catalog": "0.74.0-beta6",
16+
"magento/module-user": "0.74.0-beta6",
17+
"magento/module-backup": "0.74.0-beta6",
18+
"magento/module-customer": "0.74.0-beta6",
19+
"magento/module-translation": "0.74.0-beta6",
20+
"magento/module-require-js": "0.74.0-beta6",
21+
"magento/module-config": "0.74.0-beta6",
22+
"magento/framework": "0.74.0-beta6",
2323
"magento/magento-composer-installer": "*"
2424
},
2525
"type": "magento2-module",
26-
"version": "0.74.0-beta5",
26+
"version": "0.74.0-beta6",
2727
"license": [
2828
"OSL-3.0",
2929
"AFL-3.0"

app/code/Magento/Backend/etc/adminhtml/di.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,24 @@
9090
<argument name="instanceName" xsi:type="string">Magento\Backend\Model\View\Result\Page</argument>
9191
</arguments>
9292
</type>
93+
<type name="Magento\Framework\Controller\ResultFactory">
94+
<arguments>
95+
<argument name="typeMap" xsi:type="array">
96+
<item name="redirect" xsi:type="array">
97+
<item name="type" xsi:type="const">Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT</item>
98+
<item name="class" xsi:type="string">Magento\Backend\Model\View\Result\Redirect</item>
99+
</item>
100+
<item name="page" xsi:type="array">
101+
<item name="type" xsi:type="const">Magento\Framework\Controller\ResultFactory::TYPE_PAGE</item>
102+
<item name="class" xsi:type="string">Magento\Backend\Model\View\Result\Page</item>
103+
</item>
104+
<item name="forward" xsi:type="array">
105+
<item name="type" xsi:type="const">Magento\Framework\Controller\ResultFactory::TYPE_FORWARD</item>
106+
<item name="class" xsi:type="string">Magento\Backend\Model\View\Result\Forward</item>
107+
</item>
108+
</argument>
109+
</arguments>
110+
</type>
93111
<type name="Magento\Framework\View\Layout\BuilderFactory">
94112
<arguments>
95113
<argument name="typeMap" xsi:type="array">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $numColumns = sizeof($block->getColumns());
1414
<?php if ($block->getCollection()): ?>
1515
<div class="dashboard-item-content">
1616
<?php if ($block->getCollection()->getSize()>0): ?>
17-
<table class="table-info dashboard-data" id="<?php echo $block->getId() ?>_table">
17+
<table class="admin__table-primary dashboard-data" id="<?php echo $block->getId() ?>_table">
1818
<?php
1919
/* This part is commented to remove all <col> tags from the code. */
2020
/* foreach ($block->getColumns() as $_column): ?>

app/code/Magento/Backup/composer.json

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

app/code/Magento/Bundle/composer.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta5",
7-
"magento/module-catalog": "0.74.0-beta5",
8-
"magento/module-tax": "0.74.0-beta5",
9-
"magento/module-backend": "0.74.0-beta5",
10-
"magento/module-sales": "0.74.0-beta5",
11-
"magento/module-checkout": "0.74.0-beta5",
12-
"magento/module-catalog-inventory": "0.74.0-beta5",
13-
"magento/module-customer": "0.74.0-beta5",
14-
"magento/module-catalog-rule": "0.74.0-beta5",
15-
"magento/module-eav": "0.74.0-beta5",
16-
"magento/module-config": "0.74.0-beta5",
17-
"magento/module-gift-message": "0.74.0-beta5",
18-
"magento/framework": "0.74.0-beta5",
19-
"magento/module-quote": "0.74.0-beta5",
20-
"magento/module-media-storage": "0.74.0-beta5",
6+
"magento/module-store": "0.74.0-beta6",
7+
"magento/module-catalog": "0.74.0-beta6",
8+
"magento/module-tax": "0.74.0-beta6",
9+
"magento/module-backend": "0.74.0-beta6",
10+
"magento/module-sales": "0.74.0-beta6",
11+
"magento/module-checkout": "0.74.0-beta6",
12+
"magento/module-catalog-inventory": "0.74.0-beta6",
13+
"magento/module-customer": "0.74.0-beta6",
14+
"magento/module-catalog-rule": "0.74.0-beta6",
15+
"magento/module-eav": "0.74.0-beta6",
16+
"magento/module-config": "0.74.0-beta6",
17+
"magento/module-gift-message": "0.74.0-beta6",
18+
"magento/framework": "0.74.0-beta6",
19+
"magento/module-quote": "0.74.0-beta6",
20+
"magento/module-media-storage": "0.74.0-beta6",
2121
"magento/magento-composer-installer": "*"
2222
},
2323
"suggest": {
24-
"magento/module-webapi": "0.74.0-beta5"
24+
"magento/module-webapi": "0.74.0-beta6"
2525
},
2626
"type": "magento2-module",
27-
"version": "0.74.0-beta5",
27+
"version": "0.74.0-beta6",
2828
"license": [
2929
"OSL-3.0",
3030
"AFL-3.0"

app/code/Magento/Bundle/view/adminhtml/templates/product/composite/fieldset/options/bundle.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<?php /* @var $block \Magento\Bundle\Block\Adminhtml\Catalog\Product\Composite\Fieldset\Bundle */ ?>
1212
<?php $options = $block->decorateArray($block->getOptions()); ?>
1313
<?php if (count($options)): ?>
14-
<fieldset id="catalog_product_composite_configure_fields_bundle" class="fieldset admin__fieldset composite-bundle <?php echo $block->getIsLastFieldset() ? ' last-fieldset' : '' ?>">
14+
<fieldset id="catalog_product_composite_configure_fields_bundle"
15+
class="fieldset admin__fieldset composite-bundle<?php echo $block->getIsLastFieldset() ? ' last-fieldset' : '' ?>">
1516
<legend class="legend admin__legend"><span><?php echo __('Bundle Items') ?></span></legend><br />
1617
<?php foreach ($options as $option) : ?>
1718
<?php if ($option->getSelections()) : ?>

app/code/Magento/Bundle/view/adminhtml/templates/sales/creditmemo/create/items/renderer.phtml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
<?php if (!$_item->getOrderItem()->getParentItem()): ?>
5151
<td class="col-product">
5252
<div class="product-title"><?php echo $block->escapeHtml($_item->getName()) ?></div>
53-
<div>
54-
<strong><?php echo __('SKU') ?>:</strong>
53+
<div class="product-sku-block">
54+
<span><?php echo __('SKU') ?>:</span>
5555
<?php echo implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($_item->getSku()))); ?>
5656
</div>
5757
</td>
@@ -67,46 +67,46 @@
6767
</td>
6868
<td class="col-ordered-qty">
6969
<?php if ($block->canShowPriceInfo($_item)): ?>
70-
<table cellspacing="0" class="qty-table">
70+
<table class="data-table qty-table">
7171
<tr>
72-
<td><?php echo __('Ordered') ?></td>
73-
<td><strong><?php echo $_item->getOrderItem()->getQtyOrdered()*1 ?></strong></td>
72+
<th><?php echo __('Ordered') ?></th>
73+
<td><?php echo $_item->getOrderItem()->getQtyOrdered()*1 ?></td>
7474
</tr>
7575
<?php if ((float) $_item->getOrderItem()->getQtyInvoiced()): ?>
7676
<tr>
77-
<td><?php echo __('Invoiced') ?></td>
78-
<td><strong><?php echo $_item->getOrderItem()->getQtyInvoiced()*1 ?></strong></td>
77+
<th><?php echo __('Invoiced') ?></th>
78+
<td><?php echo $_item->getOrderItem()->getQtyInvoiced()*1 ?></td>
7979
</tr>
8080
<?php endif; ?>
8181
<?php if ((float) $_item->getOrderItem()->getQtyShipped() && $block->isShipmentSeparately($_item)): ?>
8282
<tr>
83-
<td><?php echo __('Shipped') ?></td>
84-
<td><strong><?php echo $_item->getOrderItem()->getQtyShipped()*1 ?></strong></td>
83+
<th><?php echo __('Shipped') ?></th>
84+
<td><?php echo $_item->getOrderItem()->getQtyShipped()*1 ?></td>
8585
</tr>
8686
<?php endif; ?>
8787
<?php if ((float) $_item->getOrderItem()->getQtyRefunded()): ?>
8888
<tr>
89-
<td><?php echo __('Refunded') ?></td>
90-
<td><strong><?php echo $_item->getOrderItem()->getQtyRefunded()*1 ?></strong></td>
89+
<th><?php echo __('Refunded') ?></th>
90+
<td><?php echo $_item->getOrderItem()->getQtyRefunded()*1 ?></td>
9191
</tr>
9292
<?php endif; ?>
9393
<?php if ((float) $_item->getOrderItem()->getQtyCanceled()): ?>
9494
<tr>
95-
<td><?php echo __('Canceled') ?></td>
96-
<td><strong><?php echo $_item->getOrderItem()->getQtyCanceled()*1 ?></strong></td>
95+
<th><?php echo __('Canceled') ?></th>
96+
<td><?php echo $_item->getOrderItem()->getQtyCanceled()*1 ?></td>
9797
</tr>
9898
<?php endif; ?>
9999
</table>
100100
<?php elseif ($block->isShipmentSeparately($_item)): ?>
101-
<table cellspacing="0" class="qty-table">
101+
<table class="data-table qty-table">
102102
<tr>
103-
<td><?php echo __('Ordered') ?></td>
104-
<td><strong><?php echo $_item->getOrderItem()->getQtyOrdered()*1 ?></strong></td>
103+
<th><?php echo __('Ordered') ?></th>
104+
<td><?php echo $_item->getOrderItem()->getQtyOrdered()*1 ?></td>
105105
</tr>
106106
<?php if ((float) $_item->getOrderItem()->getQtyShipped()): ?>
107107
<tr>
108-
<td><?php echo __('Shipped') ?></td>
109-
<td><strong><?php echo $_item->getOrderItem()->getQtyShipped()*1 ?></strong></td>
108+
<th><?php echo __('Shipped') ?></th>
109+
<td><?php echo $_item->getOrderItem()->getQtyShipped()*1 ?></td>
110110
</tr>
111111
<?php endif; ?>
112112
</table>
@@ -118,17 +118,24 @@
118118
<td class="col-return-to-stock">
119119
<?php if ($block->canShowPriceInfo($_item)): ?>
120120
<?php if ($block->canReturnItemToStock($_item)) : ?>
121-
<input type="checkbox" name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][back_to_stock]" value="1"<?php if ($_item->getBackToStock()):?> checked="checked"<?php endif;?> />
121+
<input type="checkbox"
122+
class="admin__control-checkbox"
123+
name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][back_to_stock]"
124+
value="1"<?php if ($_item->getBackToStock()):?> checked="checked"<?php endif;?> />
125+
<label class="admin__field-label"></label>
122126
<?php endif; ?>
123127
<?php else: ?>
124128
&nbsp;
125129
<?php endif; ?>
126130
</td>
127131
<?php endif; ?>
128-
<td class="col-refund">
132+
<td class="col-refund col-qty">
129133
<?php if ($block->canShowPriceInfo($_item)): ?>
130134
<?php if ($block->canEditQty()) : ?>
131-
<input type="text" class="input-text qty-input" name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][qty]" value="<?php echo $_item->getQty()*1 ?>" />
135+
<input type="text"
136+
class="input-text admin__control-text qty-input"
137+
name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][qty]"
138+
value="<?php echo $_item->getQty()*1 ?>" />
132139
<?php else: ?>
133140
<?php echo $_item->getQty()*1 ?>
134141
<?php endif; ?>

app/code/Magento/Bundle/view/adminhtml/templates/sales/creditmemo/view/items/renderer.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<?php if (!$_item->getOrderItem()->getParentItem()): ?>
4949
<td class="col-product">
5050
<div class="product-title"><?php echo $block->escapeHtml($_item->getName()) ?></div>
51-
<div>
52-
<strong><?php echo __('SKU') ?>:</strong>
51+
<div class="product-sku-block">
52+
<span><?php echo __('SKU') ?>:</span>
5353
<?php echo implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($_item->getSku()))); ?>
5454
</div>
5555
</td>

0 commit comments

Comments
 (0)