Skip to content

Commit ab181ab

Browse files
ashishkumarpundeerashishkumarpundeer
authored andcommitted
AC-7550-P1::[2.4.5] Incorrect carrier/method code on selected shipping method in GraphQL
1 parent 4c6f0ef commit ab181ab

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddress/SelectedShippingMethod.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
*/
2222
class SelectedShippingMethod implements ResolverInterface
2323
{
24-
/**
25-
* @var string
26-
*/
27-
private $carrierCode;
28-
29-
/**
30-
* @var string
31-
*/
32-
private $methodCode;
33-
3424
/**
3525
* @var ShippingMethodConverter
3626
*/
@@ -49,6 +39,8 @@ public function __construct(ShippingMethodConverter $shippingMethodConverter)
4939
*/
5040
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
5141
{
42+
$carrierCode="";
43+
$methodCode="";
5244
if (!isset($value['model'])) {
5345
throw new LocalizedException(__('"model" value should be specified'));
5446
}

0 commit comments

Comments
 (0)