Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 908a6bb

Browse files
authored
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - magento/magento2#20050: Add missing throws to PHPDoc (by @pmclain) - magento/magento2#20046: Added constants to unit codes to make it easier to reuse it if necessary (by @tiagosampaio) - magento/magento2#20022: [Fixed Radio alignment issue on Cart page #20021] (by @hitesh-wagento) - magento/magento2#19792: Fixed 19791: Logo vertical misalignment. (by @suryakant-krish) - magento/magento2#20005: Minor Typo fix in AbstractFilter.php (by @ajeetsinghcedcoss) - magento/magento2#19981: Fix issue 19887 creating new shipment: getting all trackers. (by @Nazar65) - magento/magento2#19978: Set correct email message encoding (by @4lexvav) - magento/magento2#19941: issue resolved:Undefined Variable $itemsOrderItemId (by @GovindaSharma) - magento/magento2#19799: Fix issue 19796 - Sales Order invoice Update Qty's Button is misaligned (by @speedy008) - magento/magento2#19914: Move website_name column into columnSet (by @bradleyfrye) - magento/magento2#19926: fixed issue #19925 Close button overlapping in shipping address label whenever any user adding new shipping address in mobile view in checkout (by @cedarvinda) - magento/magento2#19929: Refactoring in Magento_SalesRule (by @agorbulin) - magento/magento2#19900: Fix negative credit memo #19899 (by @wojtekn) - magento/magento2#19752: Fixed Typo error avaialble -> available (by @gulshanchitranshcedcoss) - magento/magento2#19715: [TASK] Updated the implements for the Magento_Cms Adminhtml Controllers (by @lewisvoncken) - magento/magento2#19620: Fix issue causing attribute not loading when using getList (by @MiliTree) - magento/magento2#19467: Use semantic theme color variables, including global primary/secondary colors (by @Brengineer) - magento/magento2#19930: Refactoring magento sales sequence (by @agorbulin) - magento/magento2#19646: Area Frontend: Fixed checkbox alignment account information page. (by @suryakant-krish) Fixed GitHub Issues: - magento/magento2#20037: CategoryLinkReposity does not list all possible exceptions (reported by @troendheim) has been fixed in magento/magento2#20050 by @pmclain in 2.3-develop branch Related commits: 1. d08ce91 2. a1d3299 - magento/magento2#20021: Radio alignment issue on Cart page (reported by @hitesh-wagento) has been fixed in magento/magento2#20022 by @hitesh-wagento in 2.3-develop branch Related commits: 1. 6089f27 - magento/magento2#19791: Logo vertical misalignment. (reported by @suryakant-krish) has been fixed in magento/magento2#19792 by @suryakant-krish in 2.3-develop branch Related commits: 1. 485b89f 2. 3a56397 3. 8e59e4b - magento/magento2#19887: creating new shipment: gettting all trackers. after this commit 2307e16 (reported by @aldf) has been fixed in magento/magento2#19981 by @Nazar65 in 2.3-develop branch Related commits: 1. 8048516 2. 9cf1e3e - magento/magento2#19977: E-Mail subject not showing utf-8 characters (reported by @4lexvav) has been fixed in magento/magento2#19978 by @4lexvav in 2.3-develop branch Related commits: 1. bccc949 - magento/magento2#19940: Exception undefined variable itemsOrderItemId while creating shipment through MSI (reported by @mohammadzakir) has been fixed in magento/magento2#19941 by @GovindaSharma in 2.3-develop branch Related commits: 1. b54ab2d - magento/magento2#19796: Sales Order invoice Update Qty's Button is misaligned (reported by @speedy008) has been fixed in magento/magento2#19799 by @speedy008 in 2.3-develop branch Related commits: 1. e30a080 2. 8a3fa61 - magento/magento2#19899: Credit memo for $0 order without refunded shipping produces negative credit memo (reported by @wojtekn) has been fixed in magento/magento2#19900 by @wojtekn in 2.3-develop branch Related commits: 1. e840e41 2. 4a77f29 3. 5b4fdca - magento/magento2#17759: M2.2.5 : CustomerRepository::getList() does not load custom attribute if the name is "company" (reported by @kanduvisla) has been fixed in magento/magento2#19620 by @MiliTree in 2.3-develop branch Related commits: 1. d600179 2. b99af38 3. e29c5dd - magento/magento2#19645: Area Frontend: Account information page checkbox alignment issue. (reported by @suryakant-krish) has been fixed in magento/magento2#19646 by @suryakant-krish in 2.3-develop branch Related commits: 1. 0811a71
2 parents 807ee7d + c5f5872 commit 908a6bb

File tree

75 files changed

+245
-165
lines changed

Some content is hidden

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

75 files changed

+245
-165
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/Catalog/Api/CategoryLinkRepositoryInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@ public function save(\Magento\Catalog\Api\Data\CategoryProductLinkInterface $pro
3232
*
3333
* @throws \Magento\Framework\Exception\CouldNotSaveException
3434
* @throws \Magento\Framework\Exception\StateException
35+
* @throws \Magento\Framework\Exception\InputException
3536
*/
3637
public function delete(\Magento\Catalog\Api\Data\CategoryProductLinkInterface $productLink);
3738

3839
/**
3940
* Remove the product assignment from the category by category id and sku
4041
*
41-
* @param string $sku
42+
* @param string $categoryId
4243
* @param string $sku
4344
* @return bool will returned True if products successfully deleted
4445
*
4546
* @throws \Magento\Framework\Exception\CouldNotSaveException
4647
* @throws \Magento\Framework\Exception\StateException
48+
* @throws \Magento\Framework\Exception\InputException
4749
*/
4850
public function deleteByIds($categoryId, $sku);
4951
}

app/code/Magento/Catalog/Model/Layer/Filter/AbstractFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function apply(\Magento\Framework\App\RequestInterface $request)
139139
}
140140

141141
/**
142-
* Get fiter items count
142+
* Get filter items count
143143
*
144144
* @return int
145145
*/

app/code/Magento/Cms/Controller/Adminhtml/Block/Edit.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Block;
77

8-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
99

10+
/**
11+
* Edit CMS block action.
12+
*/
1013
class Edit extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1114
{
1215
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/Index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109

10+
/**
11+
* Index action.
12+
*/
1113
class Index extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1214
{
1315
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/MassDelete.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Block;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\Controller\ResultFactory;
1011
use Magento\Backend\App\Action\Context;
1112
use Magento\Ui\Component\MassAction\Filter;
@@ -14,7 +15,7 @@
1415
/**
1516
* Class MassDelete
1617
*/
17-
class MassDelete extends \Magento\Backend\App\Action
18+
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1819
{
1920
/**
2021
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Block/NewAction.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109

10+
/**
11+
* Create CMS block action.
12+
*/
1113
class NewAction extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1214
{
1315
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/Save.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
109
use Magento\Backend\App\Action\Context;
1110
use Magento\Cms\Api\BlockRepositoryInterface;
1211
use Magento\Cms\Model\Block;
@@ -15,6 +14,9 @@
1514
use Magento\Framework\Exception\LocalizedException;
1615
use Magento\Framework\Registry;
1716

17+
/**
18+
* Save CMS block action.
19+
*/
1820
class Save extends \Magento\Cms\Controller\Adminhtml\Block implements HttpPostActionInterface
1921
{
2022
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
class Delete extends \Magento\Backend\App\Action
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
9+
10+
/**
11+
* Delete CMS page action.
12+
*/
13+
class Delete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1014
{
1115
/**
1216
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/Edit.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109
use Magento\Backend\App\Action;
1110

11+
/**
12+
* Edit CMS page action.
13+
*/
1214
class Edit extends \Magento\Backend\App\Action implements HttpGetActionInterface
1315
{
1416
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109
use Magento\Backend\App\Action\Context;
1110
use Magento\Framework\View\Result\PageFactory;
1211

12+
/**
13+
* Index action.
14+
*/
1315
class Index extends \Magento\Backend\App\Action implements HttpGetActionInterface
1416
{
1517
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/MassDelete.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
89
use Magento\Framework\Controller\ResultFactory;
910
use Magento\Backend\App\Action\Context;
1011
use Magento\Ui\Component\MassAction\Filter;
@@ -13,7 +14,7 @@
1314
/**
1415
* Class MassDelete
1516
*/
16-
class MassDelete extends \Magento\Backend\App\Action
17+
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1718
{
1819
/**
1920
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/MassDisable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
99
use Magento\Framework\Controller\ResultFactory;
1010
use Magento\Backend\App\Action\Context;
1111
use Magento\Ui\Component\MassAction\Filter;

app/code/Magento/Cms/Controller/Adminhtml/Page/MassEnable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
89
use Magento\Framework\Controller\ResultFactory;
910
use Magento\Backend\App\Action\Context;
1011
use Magento\Ui\Component\MassAction\Filter;
@@ -13,7 +14,7 @@
1314
/**
1415
* Class MassEnable
1516
*/
16-
class MassEnable extends \Magento\Backend\App\Action
17+
class MassEnable extends \Magento\Backend\App\Action implements HttpPostActionInterface
1718
{
1819
/**
1920
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/NewAction.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Page;
88

9-
class NewAction extends \Magento\Backend\App\Action
9+
use Magento\Framework\App\Action\HttpGetActionInterface;
10+
11+
/**
12+
* Create CMS page action.
13+
*/
14+
class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInterface
1015
{
1116
/**
1217
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/Save.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
109
use Magento\Backend\App\Action;
1110
use Magento\Cms\Model\Page;
1211
use Magento\Framework\App\Request\DataPersistorInterface;
1312
use Magento\Framework\Exception\LocalizedException;
1413

14+
/**
15+
* Save CMS page action.
16+
*/
1517
class Save extends \Magento\Backend\App\Action implements HttpPostActionInterface
1618
{
1719
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Widget/Chooser.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page\Widget;
87

98
use Magento\Framework\App\Action\HttpGetActionInterface;
10-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
9+
use Magento\Framework\App\Action\HttpPostActionInterface;
1110
use Magento\Backend\App\Action;
1211

12+
/**
13+
* Chooser Source action.
14+
*/
1315
class Chooser extends Action implements HttpPostActionInterface, HttpGetActionInterface
1416
{
1517
/**

app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/DeleteFolder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\App\Filesystem\DirectoryList;
1011

1112
/**
1213
* Delete image folder.
1314
*/
14-
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
15+
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
1516
{
1617
/**
1718
* @var \Magento\Framework\Controller\Result\JsonFactory

app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/Upload.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\App\Filesystem\DirectoryList;
1011

1112
/**
1213
* Upload image.
1314
*/
14-
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
15+
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
1516
{
1617
/**
1718
* @var \Magento\Framework\Controller\Result\JsonFactory

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public function getList(SearchCriteriaInterface $searchCriteria)
346346
->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
347347
->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
348348
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left')
349-
->joinAttribute('company', 'customer_address/company', 'default_billing', null, 'left');
349+
->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left');
350350

351351
$this->collectionProcessor->process($searchCriteria, $collection);
352352

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public function testGetList()
618618
->willReturnSelf();
619619
$collection->expects($this->at(7))
620620
->method('joinAttribute')
621-
->with('company', 'customer_address/company', 'default_billing', null, 'left')
621+
->with('billing_company', 'customer_address/company', 'default_billing', null, 'left')
622622
->willReturnSelf();
623623
$this->collectionProcessorMock->expects($this->once())
624624
->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/Email/Model/Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(
8787
public function sendMessage()
8888
{
8989
try {
90-
$zendMessage = Message::fromString($this->message->getRawMessage());
90+
$zendMessage = Message::fromString($this->message->getRawMessage())->setEncoding('utf-8');
9191
if (2 === $this->isSetReturnPath && $this->returnPathValue) {
9292
$zendMessage->setSender($this->returnPathValue);
9393
} elseif (1 === $this->isSetReturnPath && $zendMessage->getFrom()->count()) {

app/code/Magento/Sales/Model/Order/CreditmemoFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ protected function initData($creditmemo, $data)
200200
{
201201
if (isset($data['shipping_amount'])) {
202202
$creditmemo->setBaseShippingAmount((double)$data['shipping_amount']);
203+
$creditmemo->setBaseShippingInclTax((double)$data['shipping_amount']);
203204
}
204205
if (isset($data['adjustment_positive'])) {
205206
$creditmemo->setAdjustmentPositive($data['adjustment_positive']);
@@ -210,6 +211,8 @@ protected function initData($creditmemo, $data)
210211
}
211212

212213
/**
214+
* Calculate product options.
215+
*
213216
* @param Item $orderItem
214217
* @param int $parentQty
215218
* @return int

0 commit comments

Comments
 (0)