Skip to content

Commit f85a01b

Browse files
committed
Merge remote-tracking branch 'origin/2.2-develop' into MAGETWO-95752
2 parents 5e38f1d + d8ec98c commit f85a01b

File tree

16 files changed

+129
-35
lines changed

16 files changed

+129
-35
lines changed

app/code/Magento/Backend/Model/Search/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function load()
8989

9090
$this->searchCriteriaBuilder->setCurrentPage($this->getStart());
9191
$this->searchCriteriaBuilder->setPageSize($this->getLimit());
92-
$searchFields = ['firstname', 'lastname', 'company'];
92+
$searchFields = ['firstname', 'lastname', 'billing_company'];
9393
$filters = [];
9494
foreach ($searchFields as $field) {
9595
$filters[] = $this->filterBuilder

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,9 +2997,7 @@ private function formatStockDataForRow(array $rowData)
29972997
)
29982998
) {
29992999
$stockItemDo->setData($row);
3000-
$row['is_in_stock'] = $stockItemDo->getBackorders() && isset($row['is_in_stock'])
3001-
? $row['is_in_stock']
3002-
: $this->stockStateProvider->verifyStock($stockItemDo);
3000+
$row['is_in_stock'] = $row['is_in_stock'] ?? $this->stockStateProvider->verifyStock($stockItemDo);
30033001
if ($this->stockStateProvider->verifyNotification($stockItemDo)) {
30043002
$row['low_stock_date'] = $this->dateTime->gmDate(
30053003
'Y-m-d H:i:s',
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
& when (@media-common = true) {
7+
.contact-index-index {
8+
.column:not(.sidebar-main) {
9+
.form.contact {
10+
float: none;
11+
width: 50%;
12+
}
13+
}
14+
15+
.column:not(.sidebar-additional) {
16+
.form.contact {
17+
float: none;
18+
width: 50%;
19+
}
20+
}
21+
}
22+
}
23+
24+
// Mobile
25+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
26+
.contact-index-index {
27+
.column:not(.sidebar-main) {
28+
.form.contact {
29+
float: none;
30+
width: 100%;
31+
}
32+
}
33+
34+
.column:not(.sidebar-additional) {
35+
.form.contact {
36+
float: none;
37+
width: 100%;
38+
}
39+
}
40+
}
41+
}
42+

app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function getList(SearchCriteriaInterface $searchCriteria)
365365
->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
366366
->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
367367
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left')
368-
->joinAttribute('company', 'customer_address/company', 'default_billing', null, 'left');
368+
->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left');
369369

370370
$this->collectionProcessor->process($searchCriteria, $collection);
371371

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/CustomerRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public function testGetList()
740740
->willReturnSelf();
741741
$collection->expects($this->at(7))
742742
->method('joinAttribute')
743-
->with('company', 'customer_address/company', 'default_billing', null, 'left')
743+
->with('billing_company', 'customer_address/company', 'default_billing', null, 'left')
744744
->willReturnSelf();
745745
$this->collectionProcessorMock->expects($this->once())
746746
->method('process')

app/code/Magento/Directory/Model/Config/Source/WeightUnit.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Directory\Model\Config\Source;
78

89
/**
@@ -14,10 +15,23 @@
1415
class WeightUnit implements \Magento\Framework\Option\ArrayInterface
1516
{
1617
/**
17-
* {@inheritdoc}
18+
* @var string
19+
*/
20+
const CODE_LBS = 'lbs';
21+
22+
/**
23+
* @var string
24+
*/
25+
const CODE_KGS = 'kgs';
26+
27+
/**
28+
* @inheritdoc
1829
*/
1930
public function toOptionArray()
2031
{
21-
return [['value' => 'lbs', 'label' => __('lbs')], ['value' => 'kgs', 'label' => __('kgs')]];
32+
return [
33+
['value' => self::CODE_LBS, 'label' => __('lbs')],
34+
['value' => self::CODE_KGS, 'label' => __('kgs')]
35+
];
2236
}
2337
}

app/code/Magento/Sales/view/frontend/templates/email/shipment/track.phtml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@
99
?>
1010
<?php $_shipment = $block->getShipment() ?>
1111
<?php $_order = $block->getOrder() ?>
12-
<?php if ($_shipment && $_order && $_shipment->getAllTracks()): ?>
13-
<br />
14-
<table class="shipment-track">
15-
<thead>
12+
<?php $trackCollection = $_order->getTracksCollection($_shipment->getId()) ?>
13+
<?php if ($_shipment && $_order && $trackCollection): ?>
14+
<br />
15+
<table class="shipment-track">
16+
<thead>
1617
<tr>
1718
<th><?= /* @escapeNotVerified */ __('Shipped By') ?></th>
1819
<th><?= /* @escapeNotVerified */ __('Tracking Number') ?></th>
1920
</tr>
20-
</thead>
21-
<tbody>
22-
<?php foreach ($_shipment->getAllTracks() as $_item): ?>
23-
<tr>
24-
<td><?= $block->escapeHtml($_item->getTitle()) ?>:</td>
25-
<td><?= $block->escapeHtml($_item->getNumber()) ?></td>
26-
</tr>
27-
<?php endforeach ?>
28-
</tbody>
29-
</table>
21+
</thead>
22+
<tbody>
23+
<?php foreach ($trackCollection as $_item): ?>
24+
<tr>
25+
<td><?= $block->escapeHtml($_item->getTitle()) ?>:</td>
26+
<td><?= $block->escapeHtml($_item->getNumber()) ?></td>
27+
</tr>
28+
<?php endforeach ?>
29+
</tbody>
30+
</table>
3031
<?php endif; ?>

app/code/Magento/Store/Model/WebsiteRepository.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@ public function get($code)
7777
]);
7878

7979
if ($website->getId() === null) {
80-
throw new NoSuchEntityException();
80+
throw new NoSuchEntityException(
81+
__(
82+
sprintf(
83+
"The website with code %s that was requested wasn't found. Verify the website and try again.",
84+
$code
85+
)
86+
)
87+
);
8188
}
8289
$this->entities[$code] = $website;
8390
$this->entitiesById[$website->getId()] = $website;
@@ -99,7 +106,14 @@ public function getById($id)
99106
]);
100107

101108
if ($website->getId() === null) {
102-
throw new NoSuchEntityException();
109+
throw new NoSuchEntityException(
110+
__(
111+
sprintf(
112+
"The website with id %s that was requested wasn't found. Verify the website and try again.",
113+
$id
114+
)
115+
)
116+
);
103117
}
104118
$this->entities[$website->getCode()] = $website;
105119
$this->entitiesById[$id] = $website;

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/_menu.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
@menu__background-color: @color-very-dark-grayish-orange;
1717

18-
@menu-logo__padding-bottom: 2.2rem;
18+
@menu-logo__padding-bottom: 1.7rem;
1919
@menu-logo__outer-size: @menu-logo__padding-top + @menu-logo-img__height + @menu-logo__padding-bottom;
20-
@menu-logo__padding-top: 1.2rem;
20+
@menu-logo__padding-top: 1.7rem;
2121
@menu-logo-img__height: 4.1rem;
2222
@menu-logo-img__width: 3.5rem;
2323

app/design/adminhtml/Magento/backend/web/css/source/components/_modals_extend.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@
146146
}
147147

148148
.action-close {
149-
padding: @modal-popup__padding;
149+
padding: @modal-popup__padding - 2;
150150

151151
&:active,
152152
&:focus {
153153
background: transparent;
154-
padding-right: @modal-popup__padding + (@modal-action-close__font-size - @modal-action-close__active__font-size) / 2;
155-
padding-top: @modal-popup__padding + (@modal-action-close__font-size - @modal-action-close__active__font-size) / 2;
154+
padding-right: @modal-popup__padding - 2;
155+
padding-top: @modal-popup__padding - 2;
156156
}
157157
}
158158
}

0 commit comments

Comments
 (0)