Skip to content

Commit 722b213

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #20457: [Backport] Area Frontend: Fixed checkbox alignment account information page. (by @suryakant-krish) - #20455: [Backport] Fixed 19800 Contact us : design improvement (by @suryakant-krish) - #20456: [Backport] Fixed 19791: Logo vertical misalignment. (by @suryakant-krish) - #20284: [Backport] Fix issue causing attribute not loading when using getList (by @GovindaSharma) Fixed GitHub Issues: - #19645: Area Frontend: Account information page checkbox alignment issue. (reported by @suryakant-krish) has been fixed in #20457 by @suryakant-krish in 2.2-develop branch Related commits: 1. 4cdc2f0 - #19800: Contact us : design improvement (reported by @suryakant-krish) has been fixed in #20455 by @suryakant-krish in 2.2-develop branch Related commits: 1. e8dc461 2. 3fcc2eb 3. c1432e6 4. c57fb36 5. 6f3207f 6. ab99ef7 7. 0641711 - #19791: Logo vertical misalignment. (reported by @suryakant-krish) has been fixed in #20456 by @suryakant-krish in 2.2-develop branch Related commits: 1. 7b235de - #17759: M2.2.5 : CustomerRepository::getList() does not load custom attribute if the name is "company" (reported by @kanduvisla) has been fixed in #20284 by @GovindaSharma in 2.2-develop branch Related commits: 1. 0600244 2. a59c0b4
2 parents 78182ac + f57e0b1 commit 722b213

File tree

6 files changed

+49
-5
lines changed

6 files changed

+49
-5
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
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/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

lib/web/css/source/lib/_forms.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@
300300

301301
input[type="checkbox"] {
302302
.lib-form-element-choice(@_type: input-checkbox);
303+
position: relative;
304+
top: 2px;
303305
}
304306

305307
input[type="radio"] {

0 commit comments

Comments
 (0)