Skip to content

Commit 868c337

Browse files
authored
Merge pull request #8064 from magento-gl/AC-6762-v1
Regression_issues_246_09jan22
2 parents 2f326d9 + ba576bc commit 868c337

File tree

12 files changed

+88
-89
lines changed

12 files changed

+88
-89
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Extended.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,10 +1067,11 @@ public function getCsv()
10671067
$data = [];
10681068
foreach ($this->getColumns() as $column) {
10691069
if (!$column->getIsSystem()) {
1070+
$exportField = (string)$column->getRowFieldExport($item);
10701071
$data[] = '"' . str_replace(
10711072
['"', '\\'],
10721073
['""', '\\\\'],
1073-
$column->getRowFieldExport($item) ?: ''
1074+
$exportField ?: ''
10741075
) . '"';
10751076
}
10761077
}

app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class Bundle extends AbstractView
3636
protected $options;
3737

3838
/**
39-
* Catalog product
40-
*
4139
* @var \Magento\Catalog\Helper\Product
4240
*/
4341
protected $catalogProduct;
@@ -405,7 +403,7 @@ private function getConfigData(Product $product, array $options)
405403
*/
406404
private function processOptions(string $optionId, array $options, DataObject $preConfiguredValues)
407405
{
408-
$preConfiguredQtys = $preConfiguredValues->getData("bundle_option_qty/${optionId}") ?? [];
406+
$preConfiguredQtys = $preConfiguredValues->getData("bundle_option_qty/{$optionId}") ?? [];
409407
$selections = $options[$optionId]['selections'];
410408
array_walk(
411409
$selections,

app/code/Magento/Paypal/Model/PayLaterConfig.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ class PayLaterConfig
1515
/**
1616
* Configuration key for Styles settings
1717
*/
18-
const CONFIG_KEY_STYLE = 'style';
18+
public const CONFIG_KEY_STYLE = 'style';
1919

2020
/**
2121
* Configuration key for Position setting
2222
*/
23-
const CONFIG_KEY_POSITION = 'position';
23+
public const CONFIG_KEY_POSITION = 'position';
2424

2525
/**
2626
* Checkout payment step placement
2727
*/
28-
const CHECKOUT_PAYMENT_PLACEMENT = 'checkout_payment';
28+
public const CHECKOUT_PAYMENT_PLACEMENT = 'checkout_payment';
2929

3030
/**
3131
* @var Config
@@ -91,11 +91,11 @@ public function getSectionConfig(string $section, string $key)
9191
{
9292
if (!array_key_exists($section, $this->configData)) {
9393
$sectionName = $section === self::CHECKOUT_PAYMENT_PLACEMENT
94-
? self::CHECKOUT_PAYMENT_PLACEMENT : "${section}page";
94+
? self::CHECKOUT_PAYMENT_PLACEMENT : "{$section}page";
9595

9696
$this->configData[$section] = [
97-
'display' => (boolean)$this->config->getPayLaterConfigValue("${sectionName}_display"),
98-
'position' => $this->config->getPayLaterConfigValue("${sectionName}_position"),
97+
'display' => (boolean)$this->config->getPayLaterConfigValue("{$sectionName}_display"),
98+
'position' => $this->config->getPayLaterConfigValue("{$sectionName}_position"),
9999
'style' => $this->getConfigStyles($sectionName)
100100
];
101101
}
@@ -113,17 +113,17 @@ private function getConfigStyles(string $sectionName): array
113113
{
114114
$logoType = $logoPosition = $textColor = $textSize = null;
115115
$color = $ratio = null;
116-
$styleLayout = $this->config->getPayLaterConfigValue("${sectionName}_stylelayout");
116+
$styleLayout = $this->config->getPayLaterConfigValue("{$sectionName}_stylelayout");
117117
if ($styleLayout === 'text') {
118-
$logoType = $this->config->getPayLaterConfigValue("${sectionName}_logotype");
118+
$logoType = $this->config->getPayLaterConfigValue("{$sectionName}_logotype");
119119
if ($logoType === 'primary' || $logoType === 'alternative') {
120-
$logoPosition = $this->config->getPayLaterConfigValue("${sectionName}_logoposition");
120+
$logoPosition = $this->config->getPayLaterConfigValue("{$sectionName}_logoposition");
121121
}
122-
$textColor = $this->config->getPayLaterConfigValue("${sectionName}_textcolor");
123-
$textSize = $this->config->getPayLaterConfigValue("${sectionName}_textsize");
122+
$textColor = $this->config->getPayLaterConfigValue("{$sectionName}_textcolor");
123+
$textSize = $this->config->getPayLaterConfigValue("{$sectionName}_textsize");
124124
} elseif ($styleLayout === 'flex') {
125-
$color = $this->config->getPayLaterConfigValue("${sectionName}_color");
126-
$ratio = $this->config->getPayLaterConfigValue("${sectionName}_ratio");
125+
$color = $this->config->getPayLaterConfigValue("{$sectionName}_color");
126+
$ratio = $this->config->getPayLaterConfigValue("{$sectionName}_ratio");
127127
}
128128

129129
return [

app/code/Magento/Quote/Model/Quote/Address/Rate.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ class Rate extends AbstractModel
4343
protected $_address;
4444

4545
/**
46+
* @var carrier_sort_order
47+
*/
48+
public $carrier_sort_order;
49+
50+
/**
51+
* Check the Quote rate
52+
*
4653
* @return void
4754
*/
4855
protected function _construct()
@@ -51,6 +58,8 @@ protected function _construct()
5158
}
5259

5360
/**
61+
* Set Address id with address before save
62+
*
5463
* @return $this
5564
*/
5665
public function beforeSave()
@@ -63,6 +72,8 @@ public function beforeSave()
6372
}
6473

6574
/**
75+
* Set address
76+
*
6677
* @param \Magento\Quote\Model\Quote\Address $address
6778
* @return $this
6879
*/
@@ -73,6 +84,8 @@ public function setAddress(\Magento\Quote\Model\Quote\Address $address)
7384
}
7485

7586
/**
87+
* Get Method for address
88+
*
7689
* @return \Magento\Quote\Model\Quote\Address
7790
*/
7891
public function getAddress()
@@ -81,6 +94,8 @@ public function getAddress()
8194
}
8295

8396
/**
97+
* Import shipping rate
98+
*
8499
* @param \Magento\Quote\Model\Quote\Address\RateResult\AbstractResult $rate
85100
* @return $this
86101
*/

composer.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
"preferred-install": "dist",
1515
"sort-packages": true
1616
},
17-
"repositories": [
18-
{
19-
"type": "vcs",
20-
"url": "https://github.com/wikimedia/less.php"
21-
}
22-
],
2317
"require": {
2418
"php": "~8.1.0||~8.2.0",
2519
"ext-bcmath": "*",
@@ -92,7 +86,7 @@
9286
"tubalmartin/cssmin": "^4.1",
9387
"web-token/jwt-framework": "^3.1",
9488
"webonyx/graphql-php": "^14.11",
95-
"wikimedia/less.php": "dev-main"
89+
"wikimedia/less.php": "^3.2"
9690
},
9791
"require-dev": {
9892
"allure-framework/allure-phpunit": "^2",

composer.lock

Lines changed: 29 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductPriceTest.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
*/
3838
class ProductPriceTest extends GraphQlAbstract
3939
{
40+
/**
41+
* @var float
42+
*/
43+
private const EPSILON = 0.0000000001;
44+
4045
/** @var ObjectManager $objectManager */
4146
private $objectManager;
4247

@@ -692,7 +697,7 @@ public function testConfigurableProductWithVariantsHavingSpecialAndTierPrices()
692697
'customer_group_id' => Group::CUST_GROUP_ALL,
693698
'percentage_value'=> null,
694699
'qty'=> 2,
695-
'value'=> 20
700+
'value'=> 20,
696701
]
697702
];
698703
foreach ($configurableProductVariants as $configurableProductVariant) {
@@ -1218,8 +1223,16 @@ private function assertPrices($expectedPrices, $actualPrices, $currency = 'USD')
12181223
$expected['final_price']['currency'] ?? $currency,
12191224
$actual['final_price']['currency']
12201225
);
1221-
$this->assertEquals($expected['discount']['amount_off'], $actual['discount']['amount_off']);
1222-
$this->assertEquals($expected['discount']['percent_off'], $actual['discount']['percent_off']);
1226+
$this->assertEqualsWithDelta(
1227+
$expected['discount']['amount_off'],
1228+
$actual['discount']['amount_off'],
1229+
self::EPSILON
1230+
);
1231+
$this->assertEqualsWithDelta(
1232+
$expected['discount']['percent_off'],
1233+
$actual['discount']['percent_off'],
1234+
self::EPSILON
1235+
);
12231236
}
12241237
}
12251238

0 commit comments

Comments
 (0)