Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.2-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - magento#20566: [Backport] Number of Lines in a Street Address not setting to default  when you checked Use system value (by @XxXgeoXxX)
 - magento#21123: [Backport] Add filter for `NOT FIND_IN_SET` sql conditions (by @mageprince)
 - magento#21124: [Backport] issue fixed magento#20382 (by @irajneeshgupta)
 - magento#20845: [Backport] Empty block rendering in My Account page sidebar fixed using designing changes. (by @mage2pratik)


Fixed GitHub Issues:
 - magento#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 magento#20566 by @XxXgeoXxX in 2.2-develop branch
   Related commits:
     1. ca9bb26

 - magento#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 magento#21124 by @irajneeshgupta in 2.2-develop branch
   Related commits:
     1. 05848e5

 - magento#19139: Empty block rendering in My Account page sidebar (reported by @rafaelstz) has been fixed in magento#20845 by @mage2pratik in 2.2-develop branch
   Related commits:
     1. e1e4f1b
  • Loading branch information
magento-engcom-team authored Feb 12, 2019
2 parents 18f226f + 6fac0d2 commit 2fcf9b7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</div>
</div>

<div id="minicart-widgets" class="minicart-widgets">
<div id="minicart-widgets" class="minicart-widgets" if="getRegion('promotion').length">
<each args="getRegion('promotion')" render=""/>
</div>
</div>
Expand Down
21 changes: 13 additions & 8 deletions app/code/Magento/Customer/Model/Config/Backend/Address/Street.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,20 @@ public function afterDelete()
{
$result = parent::afterDelete();

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

case ScopeConfigInterface::SCOPE_TYPE_DEFAULT:
$attribute->setData('multiline_count', 2);
break;
}
$attribute->save();
return $result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@
.column.main {
width: 77.7%;
}

.sidebar-main {
.block {
margin-bottom: 0;
}
}
}

.account {
Expand Down Expand Up @@ -528,11 +534,18 @@
.column.main,
.sidebar-additional {
margin: 0;
padding: 0;
}

.data.table {
&:extend(.abs-table-striped-mobile all);
}

.sidebar-main {
.account-nav {
margin-bottom: 0;
}
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -2854,6 +2854,7 @@ public function endSetup()
* - array("gteq" => $greaterOrEqualValue)
* - array("lteq" => $lessOrEqualValue)
* - array("finset" => $valueInSet)
* - array("nfinset" => $valueNotInSet)
* - array("regexp" => $regularExpression)
* - array("seq" => $stringValue)
* - array("sneq" => $stringValue)
Expand Down Expand Up @@ -2883,6 +2884,7 @@ public function prepareSqlCondition($fieldName, $condition)
'gteq' => "{{fieldName}} >= ?",
'lteq' => "{{fieldName}} <= ?",
'finset' => "FIND_IN_SET(?, {{fieldName}})",
'nfinset' => "NOT FIND_IN_SET(?, {{fieldName}})",
'regexp' => "{{fieldName}} REGEXP ?",
'from' => "{{fieldName}} >= ?",
'to' => "{{fieldName}} <= ?",
Expand Down

0 comments on commit 2fcf9b7

Please sign in to comment.