From 8d482cd0383a3c210de50d0a3f3cbe8815fad628 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Mon, 11 Nov 2024 23:15:11 +0100 Subject: [PATCH] Bugfix: Argument 2 passed to Mage_GiftMessage_Helper_Message::getIsMessagesAvailable() must be an instance of Varien_Object, null given - --- app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php b/app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php index bde105066a7..7046555a6ce 100644 --- a/app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php +++ b/app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php @@ -182,7 +182,7 @@ public function canDisplayGiftmessage(): bool } /** @var Mage_GiftMessage_Helper_Message $helper */ $helper = $this->helper('giftmessage/message'); - return $helper->getIsMessagesAvailable('order_item', $this->getItem()->getOrderItem()) && $this->getItem()->getGiftMessageId(); + return $helper->getIsMessagesAvailable('order_item', $this->getOrderItem()) && $this->getItem()->getGiftMessageId(); } public function getGiftMessage(): ?Mage_GiftMessage_Model_Message