Skip to content

Commit bfbdfa5

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #16812: [Backport] Issue 15467 where a configuration sku gets deleted but is still saved… (by @mage2pratik) - #16801: [Backport] #16184: Fix type error in payment void method (by @gelanivishal) Fixed GitHub Issues: - #15467: Cart does not load when Configuration product option is deleted and that option is in the cart (reported by @jonshipman) has been fixed in #16812 by @mage2pratik in 2.1-develop branch Related commits: 1. d6e8ce9 2. 66dc4d8 - #16184: Argument 1 passed to Magento\Sales\Model\Order\Payment must be an instance of Magento\Framework\DataObject, none given (reported by @Jakhotiya) has been fixed in #16801 by @gelanivishal in 2.1-develop branch Related commits: 1. 25a71d5
2 parents 530084f + ff9f577 commit bfbdfa5

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

app/code/Magento/Authorizenet/Model/Directpost.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,14 @@ protected function declineOrder(\Magento\Sales\Model\Order $order, $message = ''
820820
{
821821
try {
822822
$response = $this->getResponse();
823-
if (
824-
$voidPayment && $response->getXTransId() && strtoupper($response->getXType())
825-
== self::REQUEST_TYPE_AUTH_ONLY
823+
if ($voidPayment
824+
&& $response->getXTransId()
825+
&& strtoupper($response->getXType()) == self::REQUEST_TYPE_AUTH_ONLY
826826
) {
827-
$order->getPayment()->setTransactionId(null)->setParentTransactionId($response->getXTransId())->void();
827+
$order->getPayment()
828+
->setTransactionId(null)
829+
->setParentTransactionId($response->getXTransId())
830+
->void($response);
828831
}
829832
$order->registerCancellation($message)->save();
830833
} catch (\Exception $e) {

app/code/Magento/ConfigurableProduct/Block/Cart/Item/Renderer/Configurable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ public function getProductForThumbnail()
6565
self::CONFIG_THUMBNAIL_SOURCE,
6666
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
6767
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
68-
!($this->getChildProduct()->getThumbnail() && $this->getChildProduct()->getThumbnail() != 'no_selection')
68+
!(
69+
$this->getChildProduct() &&
70+
$this->getChildProduct()->getThumbnail() &&
71+
$this->getChildProduct()->getThumbnail() != 'no_selection'
72+
)
6973
) {
7074
$product = $this->getProduct();
7175
} else {

app/code/Magento/ConfigurableProduct/CustomerData/ConfigurableItem.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ protected function getProductForThumbnail()
6363
);
6464

6565
$product = $config == ThumbnailSource::OPTION_USE_PARENT_IMAGE
66-
|| (!$this->getChildProduct()->getThumbnail() || $this->getChildProduct()->getThumbnail() == 'no_selection')
66+
|| (
67+
!$this->getChildProduct() ||
68+
!$this->getChildProduct()->getThumbnail() ||
69+
$this->getChildProduct()->getThumbnail() == 'no_selection'
70+
)
6771
? $this->getProduct()
6872
: $this->getChildProduct();
6973

0 commit comments

Comments
 (0)