Skip to content

Commit 2fcf9b7

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #20566: [Backport] Number of Lines in a Street Address not setting to default when you checked Use system value (by @XxXgeoXxX) - #21123: [Backport] Add filter for `NOT FIND_IN_SET` sql conditions (by @mageprince) - #21124: [Backport] issue fixed #20382 (by @irajneeshgupta) - #20845: [Backport] Empty block rendering in My Account page sidebar fixed using designing changes. (by @mage2pratik) Fixed GitHub Issues: - #13675: Magento 2 :- Number of Lines in a Street Address not setting to default when you checked Use system value in Magento 2.1.7 (reported by @pradeeprcs) has been fixed in #20566 by @XxXgeoXxX in 2.2-develop branch Related commits: 1. ca9bb26 - #20382: View and Edit Cart link not aligned in middle because bellow the link a blank div (class="minicart-widgets") existing has 15px margin top, this div (class="minicart-widgets" ) should be display none or should not come if has no content, should only display if has content (reported by @irajneeshgupta) has been fixed in #21124 by @irajneeshgupta in 2.2-develop branch Related commits: 1. 05848e5 - #19139: Empty block rendering in My Account page sidebar (reported by @rafaelstz) has been fixed in #20845 by @mage2pratik in 2.2-develop branch Related commits: 1. e1e4f1b
2 parents 18f226f + 6fac0d2 commit 2fcf9b7

File tree

4 files changed

+29
-9
lines changed
  • app
    • code/Magento
    • design/frontend/Magento/luma/Magento_Customer/web/css/source
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

4 files changed

+29
-9
lines changed

app/code/Magento/Checkout/view/frontend/web/template/minicart/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</div>
9898
</div>
9999

100-
<div id="minicart-widgets" class="minicart-widgets">
100+
<div id="minicart-widgets" class="minicart-widgets" if="getRegion('promotion').length">
101101
<each args="getRegion('promotion')" render=""/>
102102
</div>
103103
</div>

app/code/Magento/Customer/Model/Config/Backend/Address/Street.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,20 @@ public function afterDelete()
8787
{
8888
$result = parent::afterDelete();
8989

90-
if ($this->getScope() == \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITES) {
91-
$attribute = $this->_eavConfig->getAttribute('customer_address', 'street');
92-
$website = $this->_storeManager->getWebsite($this->getScopeCode());
93-
$attribute->setWebsite($website);
94-
$attribute->load($attribute->getId());
95-
$attribute->setData('scope_multiline_count', null);
96-
$attribute->save();
97-
}
90+
$attribute = $this->_eavConfig->getAttribute('customer_address', 'street');
91+
switch ($this->getScope()) {
92+
case \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITES:
93+
$website = $this->_storeManager->getWebsite($this->getScopeCode());
94+
$attribute->setWebsite($website);
95+
$attribute->load($attribute->getId());
96+
$attribute->setData('scope_multiline_count', null);
97+
break;
9898

99+
case ScopeConfigInterface::SCOPE_TYPE_DEFAULT:
100+
$attribute->setData('multiline_count', 2);
101+
break;
102+
}
103+
$attribute->save();
99104
return $result;
100105
}
101106
}

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@
417417
.column.main {
418418
width: 77.7%;
419419
}
420+
421+
.sidebar-main {
422+
.block {
423+
margin-bottom: 0;
424+
}
425+
}
420426
}
421427

422428
.account {
@@ -528,11 +534,18 @@
528534
.column.main,
529535
.sidebar-additional {
530536
margin: 0;
537+
padding: 0;
531538
}
532539

533540
.data.table {
534541
&:extend(.abs-table-striped-mobile all);
535542
}
543+
544+
.sidebar-main {
545+
.account-nav {
546+
margin-bottom: 0;
547+
}
548+
}
536549
}
537550
}
538551

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,6 +2854,7 @@ public function endSetup()
28542854
* - array("gteq" => $greaterOrEqualValue)
28552855
* - array("lteq" => $lessOrEqualValue)
28562856
* - array("finset" => $valueInSet)
2857+
* - array("nfinset" => $valueNotInSet)
28572858
* - array("regexp" => $regularExpression)
28582859
* - array("seq" => $stringValue)
28592860
* - array("sneq" => $stringValue)
@@ -2883,6 +2884,7 @@ public function prepareSqlCondition($fieldName, $condition)
28832884
'gteq' => "{{fieldName}} >= ?",
28842885
'lteq' => "{{fieldName}} <= ?",
28852886
'finset' => "FIND_IN_SET(?, {{fieldName}})",
2887+
'nfinset' => "NOT FIND_IN_SET(?, {{fieldName}})",
28862888
'regexp' => "{{fieldName}} REGEXP ?",
28872889
'from' => "{{fieldName}} >= ?",
28882890
'to' => "{{fieldName}} <= ?",

0 commit comments

Comments
 (0)