Skip to content

Commit

Permalink
Bugfix: Argument 2 passed to Mage_GiftMessage_Helper_Message::getIsMe…
Browse files Browse the repository at this point in the history
…ssagesAvailable() must be an instance of Varien_Object, null given

-
  • Loading branch information
sreichel committed Nov 11, 2024
1 parent eaf63c1 commit 8d482cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d482cd

Please sign in to comment.