Skip to content

Commit fb347f7

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17029: [Backport] Fixes Black color coding standard. (by @chirag-wagento) - #17092: [Backport] Remove forced setting of cache_lifetime to false in constructor and set default cache_lifetime to 3600 (by @mageprince) - #17111: [Backport] Fixed widget template rendering issue while rewriting widget block (by @gelanivishal) - #16809: [Backport] Remove double semicolon from the style sheets. (by @gelanivishal) - #17089: [Backport] Fixed comparison with 0 bug for TableRate shipping carrier (by @mageprince) - #17088: [Backport] Solved this issue : Drop down values are not showing in catalog produ� (by @mageprince) Fixed GitHub Issues: - #13595: loadCache for Block Magento\Theme\Block\Html\Footer dont work (reported by @larsroettig) has been fixed in #17092 by @mageprince in 2.1-develop branch Related commits: 1. 58698b5 - #16529: Rewriting product listing widget block breaks its template rendering. (reported by @sanganinamrata) has been fixed in #17111 by @gelanivishal in 2.1-develop branch Related commits: 1. deb05f1 2. 784d167 - #13006: Drop down values are not showing in catalog product grid magento2 (reported by @ramusadwika) has been fixed in #17088 by @mageprince in 2.1-develop branch Related commits: 1. c1f1313
2 parents 1023036 + 8f6ca5c commit fb347f7

File tree

12 files changed

+603
-297
lines changed

12 files changed

+603
-297
lines changed

app/code/Magento/CatalogWidget/etc/widget.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<parameter name="template" xsi:type="select" required="true" visible="true">
3434
<label translate="true">Template</label>
3535
<options>
36-
<option name="default" value="product/widget/content/grid.phtml" selected="true">
36+
<option name="default" value="Magento_CatalogWidget::product/widget/content/grid.phtml" selected="true">
3737
<label translate="true">Products Grid Template</label>
3838
</option>
3939
</options>

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function addOptionValueToCollection($collection, $attribute, $valueExpr)
4444
);
4545
$valueExpr = $connection->getCheckSql(
4646
"{$optionTable2}.value_id IS NULL",
47-
"{$optionTable1}.value",
48-
"{$optionTable2}.value"
47+
"{$optionTable1}.option_id",
48+
"{$optionTable2}.option_id"
4949
);
5050

5151
$collection->getSelect()->joinLeft(

app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate/RateQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getBindings()
9999
}
100100
} else {
101101
$bind[':condition_name'] = $this->request->getConditionName();
102-
$bind[':condition_value'] = $this->request->getData($this->request->getConditionName());
102+
$bind[':condition_value'] = round($this->request->getData($this->request->getConditionName()), 4);
103103
}
104104

105105
return $bind;

app/code/Magento/Theme/Block/Html/Footer.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ protected function _construct()
5454
{
5555
$this->addData(
5656
[
57-
'cache_lifetime' => false,
5857
'cache_tags' => [\Magento\Store\Model\Store::CACHE_TAG, \Magento\Cms\Model\Block::CACHE_TAG],
5958
]
6059
);
@@ -119,4 +118,14 @@ public function getIdentities()
119118
{
120119
return [\Magento\Store\Model\Store::CACHE_TAG, \Magento\Cms\Model\Block::CACHE_TAG];
121120
}
121+
122+
/**
123+
* Get block cache life time
124+
*
125+
* @return int
126+
*/
127+
protected function getCacheLifetime()
128+
{
129+
return parent::getCacheLifetime() ?: 3600;
130+
}
122131
}

app/code/Magento/Widget/Test/Unit/Model/WidgetTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testGetWidgetDeclaration()
174174
'show_pager' => '1',
175175
'products_per_page' => '5',
176176
'products_count' => '10',
177-
'template' => 'product/widget/content/grid.phtml',
177+
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
178178
'conditions' => $conditions
179179
];
180180

@@ -187,7 +187,10 @@ public function testGetWidgetDeclaration()
187187
['1', false, '1'],
188188
['5', false, '5'],
189189
['10', false, '10'],
190-
['product/widget/content/grid.phtml', false, 'product/widget/content/grid.phtml'],
190+
['Magento_CatalogWidget::product/widget/content/grid.phtml',
191+
false,
192+
'Magento_CatalogWidget::product/widget/content/grid.phtml'
193+
],
191194
['encoded-conditions-string', false, 'encoded-conditions-string'],
192195
]);
193196

@@ -225,7 +228,7 @@ public function testGetWidgetDeclarationWithZeroValueParam()
225228
'show_pager' => '1',
226229
'products_per_page' => '5',
227230
'products_count' => '0',
228-
'template' => 'product/widget/content/grid.phtml',
231+
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
229232
'conditions' => $conditions
230233
];
231234

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/_module-old.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
}
122122

123123
.mage-suggest-selected > a {
124-
color: #000;
124+
color: @color-black;
125125
background: #F1FFEB;
126126
}
127127
}

app/design/adminhtml/Magento/backend/web/css/styles-old.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@
487487
}
488488

489489
.notification-entry-dialog .action-close:hover {
490-
color: #000;
491-
border-bottom-color: #000;
490+
color: @color-black;
491+
border-bottom-color: @color-black;
492492
filter: none;
493493
}
494494

@@ -3794,7 +3794,7 @@
37943794
}
37953795

37963796
.rule-param .label {
3797-
color: #000;
3797+
color: @color-black;
37983798
float: none;
37993799
text-align: left;
38003800
padding: 0;
@@ -5211,7 +5211,7 @@
52115211
@media print {
52125212
* {
52135213
background: transparent !important;
5214-
color: #000 !important;
5214+
color: @color-black !important;
52155215
box-shadow: none !important;
52165216
text-shadow: none !important;
52175217
filter: none !important;

lib/web/css/docs/source/_buttons.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ button {
4848
&.example-button-3 {
4949
.lib-button-s();
5050
border-radius: 0;
51-
color: #000;
51+
color: @color-black;
5252
&:hover,
5353
&.active {
54-
color: #000;
54+
color: @color-black;
5555
}
5656
}
5757
}

lib/web/css/docs/source/_messages.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
// ```
177177
//
178178

179-
@message-custom__color: #000;
179+
@message-custom__color: @color-black;
180180
@message-custom__background: #fc0;
181181
@message-custom__border-color: orange;
182182

@@ -185,7 +185,7 @@
185185
@message-custom-link__color-active: darken(@message-custom-link__color, 30%);
186186

187187
@message-custom-icon: @icon-settings;
188-
@message-custom-icon__color-lateral: #000;
188+
@message-custom-icon__color-lateral: @color-black;
189189
@message-custom-icon__background: #green;
190190
@message-custom-icon__top: 15px;
191191
@message-custom-icon__right: false;

lib/web/css/docs/source/_tables.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@
12531253
.lib-table();
12541254
.lib-table-striped(
12551255
@_stripped-background-color: #ffc,
1256-
@_stripped-color: #000,
1256+
@_stripped-color: @color-black,
12571257
@_stripped-direction: horizontal,
12581258
@_stripped-highlight: even
12591259
);

0 commit comments

Comments
 (0)